HTML and CSS Reference
In-Depth Information
Making the validator (and more than a few
browsers) happy with a meta tag…
The <meta> tag belongs in the <head> element (remember that the <head>
contains information about your page). Go ahead and add the <meta> tag line right
into your HTML. Let's first add it to the “lounge.html” file:
Here's the <meta> tag. W e've
added it to the <head> element
above the < title> elemen t.
<!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>
Want to place another bet? Is this going to validate? First, make the
changes to your “lounge.html” file, save it, and reload it into your
browser. Once again, you won't notice any change, but the browser will.
Now let's see if it validates…
 
Search WWH ::




Custom Search