Wednesday, July 26, 2006

Fix Your Site With the Right DOCTYPE

[Tags: , ]. It's amazing what a difference it makes when you define your DOCTYPE correctly. Internet Explorer and Firefox, for example, agree on how to present it (mostly). My advice: set your doctype before you do anything else, as you can find that your carefully crafted CSS suddenly looks very different with an XHTML doctype compared to the HTML doctype.

If this doesn't make much sense, read the much more extensive and better-written article by Jeffrey Zeldman, and check out the W3C page that gives you the code needed.

0 Comments:

Post a Comment

<< Home