04.06.2013 Views

Head First HTML with CSS

Head First HTML with CSS

Head First HTML with CSS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

making your html strict<br />

Changing the DOCTYPE to strict<br />

Open your “lounge.html” file again. To change from transitional to<br />

strict, you just need to do two things to the DOCTYPE: delete the word<br />

“Transitional” and, in the URL, change “loose.dtd” to “strict.dtd”. Or if<br />

you like, you can delete the old line and type the new one in.<br />

<br />

<br />

<br />

<br />

<strong>Head</strong> <strong>First</strong> Lounge<br />

<br />

<br />

Welcome to the New and Improved <strong>Head</strong> <strong>First</strong> Lounge<br />

<br />

<br />

Join us any evening for refreshing<br />

elixirs,<br />

conversation and maybe a game or two<br />

of Dance Dance Revolution.<br />

Wireless access is always provided;<br />

BYOWS (Bring Your Own Web Server).<br />

<br />

Directions<br />

<br />

You’ll find us right in the center of downtown<br />

Webville. If you need help finding us, check out our<br />

detailed directions.<br />

Come join us!<br />

<br />

<br />

<br />

246 Chapter 6<br />

<strong>First</strong>, remove the word<br />

“Transitional”.<br />

That’s it. Just make sure your DOCTYPE looks exactly as it does above.<br />

Now all that remains is to ask the validator if our <strong>HTML</strong> is compliant <strong>with</strong><br />

the strict version of <strong>HTML</strong> 4.01. Use the validator again to check the page,<br />

after making sure your page has the changes above.<br />

And then replace “loose.dtd” <strong>with</strong> “strict.dtd”.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!