HTML Reference

HyperText Markup Language Explained



Headers

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.

HTML Transitional Loose DTD

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">

HTML Strict 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">

HTML Quirks Mode 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">

HTML Frameset DTD

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">

XHMTL Transistional 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">

XHTML Strict 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">

XHTML Frameset 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">

HTML Version 3 DTD

DTD for HTML version 3 rendering - supported in most browsers.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">

HTML Version 2 DTD

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">

Add a Comment - CyberVisor - Concept Visor

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.

Concept Visor
 

Links



If you have found this site useful please consider linking to it @ http://html.poisedsolutions.com/

Social BookMarks
Google      Digg      Del.icio.us      Yahoo      Reddit      Facebook


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.