Definitions

from Wiktionary, Creative Commons Attribution/Share-Alike License.

  • noun computing A directive that associates an SGML or XML document (such as a webpage) with a Document Type Definition, potentially affecting how it is parsed and rendered.

Etymologies

from Wiktionary, Creative Commons Attribution/Share-Alike License

From document type.

Support

Help support Wordnik (and make this page ad-free) by adopting the word doctype.

Examples

  • One clarification: the doctype is not recommended for XHTML 5, but this is based on the assumption that XHTML 5 is served with the MIME type of application/xhtml+xml.

    Web Teacher › HTML5: The DOCTYPE Declaration 2009

  • The legacy doctype is only recommended in text/html when using a tool that cannot emit the short doctype.

    Web Teacher › HTML5: The DOCTYPE Declaration 2009

  • Icon: "Optional URL for an icon." doctype: "Doctype for this window." lines. "html-tag-attributes:" A yaclml attribute list that'll be rendered into the

    Planet Lisp 2010

  • Icon: "Optional URL for an icon." doctype: "Doctype for this window." lines. "html-tag-attributes:" A yaclml attribute list that'll be rendered into the

    Planet Lisp 2010

  • Please don't let the unfortunate name "doctype" or the HTML 4.01 spec fool you.

    Planet Mozilla 2009

  • Most parsers walk the DOM rather than relying on the doctype.

    Archive 2009-05-01 Mia 2009

  • No, it the short form is also allowed, or any other well-formed doctype for that matter.

    Web Teacher › HTML5: The DOCTYPE Declaration 2009

  • The recommendation for XHTML5 is to omit the doctype.

    Web Teacher › HTML5: The DOCTYPE Declaration 2009

  • Question: do you need to use a special doctype [for RDFa]?

    Archive 2009-05-01 Mia 2009

  • Answer: added to spec that 'you should use this doctype' but the spec allows for RDFa to be used in situations when can't change doctype e.g. RDFa embedded in blogger blogpost.

    Archive 2009-05-01 Mia 2009

Comments

Log in or sign up to get involved in the conversation. It's quick and easy.