Workshop


The workshop contains quiz questions and activities to help you solidify your understanding of the material covered. Try to answer all questions before looking at the "Answers" section that follows.

Quiz

1:

What's the simplest way to let the widest possible audience see a video on your web site?

2:

Write the HTML to embed a video file named myvideo.avi into a web page so that the users of all major web browsers will be able to see it. The video requires an area on the page that is 320x305 pixels in size.

3:

How would you code a <param> tag within an <object> tag so that a media clip is played repeatedly?

Answers

A1:

Just link to it:

 <a href="myvideo.avi">my video</a> 


A2:

Because the video clip is in a Microsoft format (AVI), it makes sense to embed a Windows Media player object. Use the following HTML code:

 <object class width="320" height="305">   <param name="type" value="video/x-ms-avi" />   <param name="URL" value="myvideo.avi" />   <param name="uiMode" value="full" />   <param name="autoStart" value="true" />   <embed width="320" height="305" type="video/x-ms-avi"   src="/books/4/158/1/html/2/myvideo.avi" controls="All" loop="false" autostart="true"   pluginspage="http://www.microsoft.com/windows/windowsmedia/"></embed> </object> 


A3:

<param name="loop" value="true" />




SAMS Teach Yourself HTML and CSS in 24 Hours
Sams Teach Yourself HTML and CSS in 24 Hours (7th Edition)
ISBN: 0672328410
EAN: 2147483647
Year: 2005
Pages: 345

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net