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.

Okay, it’s been more than<br />

a “few pages” since you said<br />

you were going to talk about what<br />

“transitional” means. What’s <strong>with</strong> this<br />

transitional stuff? If we’re writing<br />

“standard” <strong>HTML</strong> 4.01, why is it<br />

transitional?<br />

standards, compliance, and all that jazz<br />

There are actually two DOCTYPEs, one<br />

for those transitioning to <strong>HTML</strong> 4.01,<br />

and a more strict DOCTYPE for those<br />

who are already there.<br />

Imagine you’ve got a Web site <strong>with</strong> hundreds of Web<br />

pages, all written in nonstandard <strong>HTML</strong>. You’d like to<br />

improve the site and get all that <strong>HTML</strong> up to the 4.01<br />

standard, but you’re using lots of old legacy stuff from<br />

back in the 2.0 and 3.2 days of <strong>HTML</strong>.<br />

What do you do? Use the <strong>HTML</strong> 4.01 Transitional<br />

DOCTYPE, which allows you to validate your pages but<br />

still permits some of the legacy <strong>HTML</strong>. That way, you<br />

can be sure you don’t have any outright mistakes in your<br />

markup (like typos, mismatched tags, and so on) but you<br />

won’t have to rework all your <strong>HTML</strong> to get it to validate.<br />

Then, after you’ve removed all the legacy <strong>HTML</strong>, you’re<br />

all ready for the strict document type, which ensures you<br />

have a fully compliant, standardized Web site.<br />

you are here 243

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

Saved successfully!

Ooh no, something went wrong!