A user account is required in order to edit this wiki, but we've had to disable public user registrations due to spam.

To request an account, ask an autoconfirmed user on Chat (such as one of these permanent autoconfirmed members).

DOCTYPE: Difference between revisions

From WHATWG Wiki
Jump to navigation Jump to search
(+{{obsolete|spec=http://www.whatwg.org/specs/web-apps/current-work/multipage/#the-doctype}})
 
Line 1: Line 1:
{{obsolete|spec=http://www.whatwg.org/specs/web-apps/current-work/multipage/#the-doctype}}
== About ==
== About ==



Latest revision as of 13:53, 9 July 2013

This document is obsolete.

For the current specification, see: http://www.whatwg.org/specs/web-apps/current-work/multipage/#the-doctype

About

DOCTYPEs are required for legacy reasons. When omitted, browsers tend to use a different rendering mode that is incompatible with some specifications. Including the DOCTYPE in a document ensures that the browser makes a best-effort attempt at following the relevant specifications.

Form

A DOCTYPE must consist of the following characters, in this order:

  1. A U+003C LESS-THAN SIGN (<) character.
  2. A U+0021 EXCLAMATION MARK (!) character.
  3. A U+0044 LATIN CAPITAL LETTER D or U+0064 LATIN SMALL LETTER D character.
  4. A U+004F LATIN CAPITAL LETTER O or U+006F LATIN SMALL LETTER O character.
  5. A U+0043 LATIN CAPITAL LETTER C or U+0063 LATIN SMALL LETTER C character.
  6. A U+0054 LATIN CAPITAL LETTER T or U+0074 LATIN SMALL LETTER T character.
  7. A U+0059 LATIN CAPITAL LETTER Y or U+0079 LATIN SMALL LETTER Y character.
  8. A U+0050 LATIN CAPITAL LETTER P or U+0070 LATIN SMALL LETTER P character.
  9. A U+0045 LATIN CAPITAL LETTER E or U+0065 LATIN SMALL LETTER E character.
  10. One or more space characters.
  11. A U+0048 LATIN CAPITAL LETTER H or U+0068 LATIN SMALL LETTER H character.
  12. A U+0054 LATIN CAPITAL LETTER T or U+0074 LATIN SMALL LETTER T character.
  13. A U+004D LATIN CAPITAL LETTER M or U+006D LATIN SMALL LETTER M character.
  14. A U+004C LATIN CAPITAL LETTER L or U+006C LATIN SMALL LETTER L character.
  15. Zero or more space characters.
  16. A U+003E GREATER-THAN SIGN (>) character.

Example

<!DOCTYPE HTML>