HTML and CSS Reference
In-Depth Information
Your turn. Add the <meta> tag to “directions.html” and “elixir.html”. Try validating
them; do they validate? If not, fix them so that they do.
Time to play a little game with the validator. Take the code you just successfully
validated as HTML5 (on page 241), and remove the doctype. That's right—remove it,
just to see what happens when you validate. Go ahead and submit this version of the
file to the validator and see what happens. Make notes below about the errors you get.
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title> Head First Lounge </title>
</head>
<body>
<h1> Welcome to the New and Improved Head First Lounge </h1>
<img src="drinks.gif" alt="Drinks">
<p>
Join us any evening for refreshing
<a href="elixir.html"> elixirs </a> , conversation and
maybe a game or two of <em> Dance Dance Revolution </em> .
Wireless access is always provided; BYOWS (Bring
your own web server).
</p>
<h2> Directions </h2>
<p>
You'll find us right in the center of downtown
Webville. If you need help finding us, check out our
<a href="directions.html"> detailed directions </a>.
Come join us!
</p>
</body>
</html>
Wh at do es t his t ell yo u ab out the t ype of
you r HT ML if yo u do n't i nclud e a d octy pe?
Search WWH ::




Custom Search