Definitions
from Wiktionary, Creative Commons Attribution/Share-Alike License.
- noun computing A
directive that associates anSGML orXML document (such as awebpage ) with a Document Type Definition, potentially affecting how it isparsed andrendered .
Etymologies
from Wiktionary, Creative Commons Attribution/Share-Alike License
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.
-
The legacy doctype is only recommended in text/html when using a tool that cannot emit the short doctype.
-
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.
-
The recommendation for XHTML5 is to omit the doctype.
-
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.