Template
Use the following markup as a template to create a new XHTML 1.0 document using a proper Doctype declaration. See the list below if you wish to use another DTD.
An XHTML 1.0 Strict standard template
… Your HTML content here …
(X)HTML Doctype Declarations List
- HTML 4.01
- XHTML 1.0
- XHTML 1.1 – DTD:
- XHTML Basic 1.1 (quick reference):
- HTML 5 [NOT a standard yet]
MathML Doctype Declarations
- MathML 2.0 – DTD:
- MathML 1.01 – DTD:
Compound documents doctype declarations
- XHTML + MathML + SVG – DTD:
- XHTML + MathML + SVG Profile (XHTML as the host language) – DTD:
- XHTML + MathML + SVG Profile (Using SVG as the host) – DTD:
Optional doctype declarations
Beyond the specificities of (X)HTML processing, Doctype declarations in XML languages are only useful to declare named entities and to facilitate the validation of documents based on DTDs. This means that in many XML languages, doctype declarations are not necessarily useful.
The list below is provided only if you actually need to declare a doctype for these types of documents.
- SVG 1.1 Full – DTD:
- SVG 1.0 – DTD:
- SVG 1.1 Basic – DTD:
- SVG 1.1 Tiny – DTD:
Historical doctype declarations
The doctype declarations below are valid, but have mostly an historical value — a doctype declaration of a more recent equivalent ought to be used in their stead.