DOCTYPE declaration is an instruction found at the top of an HTML or XHTML document that tells the user agent what version of HTML the document uses.
DOCTYPE for modern documents is the HTML5
More Information About
Learn the rules in the HTML specification for using the
Anatomy of a
DOCTYPE declarations can have several different parts. Learn what all the different bits are and when you should and shouldn't use them.
DOCTYPEs and the Web Pages They Generate
This article covers what features are part of different
DOCTYPEs and when you might choose to use one over another.
Quirks Mode and
If you don't use a
DOCTYPE your page will render in quirks mode. Here is some information about quirks mode and why you should be aware of it.
This article explains what quirks mode is, how you trigger it, and why you should avoid it.
This article goes into more detail about some of the strange things that can happen in quirks mode.
dahk taip — (noun)
There are several synonyms that mean the same thing as
DTD—Which is really a part of a
DOCTYPE, and not a synonym at all.
- Document Type Declaration
DOCTYPE to use now is the HTML5
DOCTYPE. And it's also very easy to remember:
DOCTYPE examples include:
HTML 4.01 Strict
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
XHTML 1.0 Transitional
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">