<doctype>

Renders one of five HTML DOCTYPE declarations, according to the version attribute.

Attributes

  • ‘version’ - the doctype version, must be one of:

    • HTML 4.01 STRICT
    • HTML 4.01 TRANSITIONAL
    • XHTML 1.0 STRICT
    • XHTML 1.0 TRANSITIONAL
    • XHTML 1.1
    • HTML
    • html
    • HTML5
    • html5

See the source for the actual output

Show Source


Edit this page