
DOCTYPEs are a key component of compliant web pages: your markup and CSS won’t validate without them.Īs mentioned in previous ALA articles (and in other interesting places), DOCTYPES are also essential to the proper rendering and functioning of web documents in compliant browsers like Mozilla, IE5/Mac, and IE6/Win.Ī recent DOCTYPE that includes a full URI (a complete web address) tells these browsers to render your page in standards–compliant mode, treating your (X)HTML, CSS, and DOM as you expect them to be treated. Per HTML and XHTML standards, a DOCTYPE (short for “document type declaration”) informs the validator which version of (X)HTML you’re using, and must appear at the very top of every web page. This little article will provide you with DOCTYPEs that work, and explain the practical, real–world effect of these seemingly abstract tags.

Yet, in browsers designed to support these very standards, your site is failing. You’ve used the W3C standard Document Object Model (DOM) to manipulate dynamic page elements.


Brief books for people who make websites.
