HTML and CSS Reference
In-Depth Information
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Predict the Result</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
</head>
<body>
<h1><em>Favorite Sites</em></h1>
<ol>
<li><a href="http://myspace.com">My Space</a></li>
<li><a href="http://google.com">Google</a></li>
</ol>
<p><small>Copyright © 2011 Your name here</small></p>
</body>
</html>
2. Fill in the Missing Code.
This Web page should display a heading and a definition
list, but some XHTML tags, indicated by
<_>
are missing. Fill in the missing code.
<!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>Door County Wild Flowers</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
</head>
<body>
<_>
Door County Wild Flowers
<_>
<dl>
<dt>Trillium
<_>
<_>
This white flower blooms from April through June in
wooded areas.
<_>
<_>
Lady Slipper
<_>
<_>
This yellow orchid blooms in June in wooded areas.
</dd>
<_>
</body>
</html>
3. Find the Error.
Why won't this page display in a browser?
<!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>
<h1>Why don't I display?</h1>
</body>
</html>
Search WWH ::
Custom Search