Document types are used to inform the browser about the style of content that it is about to parse. Certain document type headers, change the way the following document is interpreted.
The most common document type in HTML at the moment (2008) is the HTML 4.01 transitional loose document. This document type header tends to offer the most flexibility, though render performance is perhaps reduced.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
This DTD uses a reduced more W3C compliant set of rules for layout.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
This document type omits the URL and turns on quirks mode in some browsers. Quirks mode enables previous bugs to operate as they did before. This DTD is very much a compromise, it is perhaps better to fix the code that is affected than run with this DTD.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
This document type is for frameset documents.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
A transistional DTD for HTML derived from XML.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
The strict DTD for XHTML derived from XML.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
The DTD for XHTML framesets.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
DTD for HTML version 3 rendering - supported in most browsers.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
DTD for HTML version 2 rendering - perhaps the most supported DTD - but good luck on getting a workable design in this DTD without knowing the old HTML lore.
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
Bookmark and then activate Concept Visor to comment on this page, or any other page on the web. The Concept Visor also allows you to view comments made on the page.
If you have found this site useful please consider linking to it @ http://html.poisedsolutions.com/
© Copyright Poised Solutions 2008 All Rights Reserved
Site Designed & Developed by
Poised Solutions
If you wish to discuss hiring Poised Solutions for an
information technology (IT project please get in contact
or visit the main PoisedSolutions IT Consultancy Website.
Poised Solutions is based in the Thames Valley area of the UK.