HTML and CSS Reference
In-Depth Information
3. Find the Error. The purpose of the following Web page is to display a video named
products.mov. The video only displays on Internet Explorer. Why?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Find the Error<title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<div>
<img dynsrc="products.mov" autostart="true" width="160"
height="120" alt="Products Video 2MB" />
</div>
</body>
</html>
Hands-On Exercises
1. Practice writing XHTML to configure media.
a. Write the XHTML for a hyperlink to a video called demo1.mov on a Web page.
b. Write the XHTML to embed an audio file called lesson1.wav on a Web page
that can be controlled by the visitor.
2. Practice writing XHTML.
a. Write the XHTML to place a Java applet called mylink.class on a Web page.
This applet needs an area that is 300 pixels wide and 40 pixels high. Its parame-
ters are documented as follows:
Parameter Name Parameter Value
LinkURL Any URL
LinkDescription Text describing the link
b. Write the XHTML to add a Flash file called intro.swf to a Web page. The effect
needs an area that is 500 pixels wide and 200 pixels high.
3. Create a Web page about your favorite movie that contains one of the following: an
audio file containing your review of the movie (use Windows Sound Recorder or a
similar program to record your voice), an audio clip from the movie, a video clip
from the movie, or an audio clip from the movie soundtrack. Place an e-mail link to
yourself on the Web page. Save the page as movie11.html. Hand in printouts of
both the source code (print in Notepad) and the browser display of your page to
your instructor.
4. Create a Web page about your favorite music CD that contains either a brief audio
file containing your review of the CD (use Windows Sound Recorder or a similar
program to record your voice) or an audio clip from the CD. Place an e-mail link to
yourself on the Web page. Save the page as cd11.html. Hand in printouts of both
 
Search WWH ::




Custom Search