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.

html and deprecated markup<br />

258 Chapter 6<br />

One more question<br />

about this transitional<br />

stuff. What is all this old<br />

markup that isn’t allowed in<br />

strict? Have we seen any<br />

examples?<br />

No, we’ve been writing mostly<br />

strict <strong>HTML</strong> all along.<br />

Even though we haven’t been including a<br />

DOCTYPE or a tag, and we’ve<br />

been a little lazy on the image nesting rules,<br />

throughout this book you’ve been writing<br />

<strong>HTML</strong> that is very close to the standard. So,<br />

you haven’t had much opportunity to see the<br />

phased out elements and attributes.<br />

Want to see some? Just visit a few Web pages<br />

<strong>with</strong> your browser and choose “View Source”<br />

from the “View” menu (your browser’s menus<br />

may differ). Any tag or attribute that looks<br />

like it is used to alter the display of the page is<br />

most likely deprecated in <strong>HTML</strong> 4.01 (because<br />

that is now <strong>CSS</strong>’s job). It doesn’t hurt to know<br />

a little about these legacy elements, because<br />

you are quite likely to run into some of them<br />

now and then. Let’s take a quick look...<br />

That’s a good thing, because<br />

sometimes unlearning a bad<br />

habit is the hardest part of<br />

a new standard.

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

Saved successfully!

Ooh no, something went wrong!