DOCTYPEs

W3C Document Type Declarations

View the Project on GitHub dnhn/DOCTYPEs

DOCTYPEs

A list of Document Type Declarations from the W3C.

Table of Contents

  1. HTML
  2. XHTML
  3. MathML
  4. Compound documents
  5. Optional
  6. Historical

HTML DOCTYPE declarations

HTML5

<!DOCTYPE html>

HTML 4.01

Strict

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

Transitional

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

Frameset

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

XHTML DOCTYPE declarations

XHTML 1.1

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

XHTML 1.0

Strict

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

Transitional

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

Frameset

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

XHTML Basic 1.1

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

MathML DOCTYPE declarations

MathML 2.0

<!DOCTYPE math PUBLIC "-//W3C//DTD MathML 2.0//EN" 
    "http://www.w3.org/Math/DTD/mathml2/mathml2.dtd">

MathML 1.01

<!DOCTYPE math SYSTEM 
    "http://www.w3.org/Math/DTD/mathml1/mathml.dtd">

Compound documents DOCTYPE declarations

XHTML + MathML + SVG Profile (XHTML as the host language)

<!DOCTYPE html PUBLIC 
    "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" 
    "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">

XHTML + MathML + SVG Profile (Using SVG as the host)

<!DOCTYPE svg:svg PUBLIC 
    "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" 
    "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">

Optional DOCTYPE declarations

SVG 1.1 Full

<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" 
    "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">

SVG 1.1 Basic

<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Basic//EN" 
    "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-basic.dtd">

SVG 1.1 Tiny

<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" 
    "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd">

SVG 1.0

<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" 
    "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">

Historical DOCTYPE declarations

HTML 3.2

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

HTML 2.0

<!DOCTYPE html PUBLIC "-//IETF//DTD HTML 2.0//EN">

XHTML Basic 1.0

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.0//EN" 
    "http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd">

All of the DOCTYPEs above is originated from http://www.w3.org/QA/2002/04/valid-dtd-list.html.

Back to top