CSS HOW-TOCSS TemplatesLink listContactSitemap

03 Document Type Declarations (DTD)

Each document has to begin with a Doctype-Declaration (DTD). It specifies which HTML standard is being used. DTDs are part of HTML and XHTML. The DTD appears at the beginning of the document before the <html> tag.
HTML versions before HTML 4.01 should not be used anymore as they are obsolete. XHTML 1.0 is backwards compatible to HTML.
Just as HTML 4.01, XHTML 1.0 has three different DTDs. Unlike HTML 4.01, XHTML requires that a document start with a DTD.
This site uses:
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

Transitional is the doc type that is compatible with HTML 4.01

HTML 4.01 Strict, Transitional, Frameset

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
                        
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">

XHTML 1.0 Strict, Transitional, Frameset

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">

XHTML 1.1 DTD

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

further Articles on doc types