The term DOCTYPE tells the browser which type of HTML is used on a webpage. In turn, the browsers use DOCTYPE to determine how to render a page. Failing to use DOCTYPE or using a wrong DOCTYPE may load your page in Quirks Mode.
What does DOCTYPE mean?
Collapse
X
-
The DOCTYPE tells the web browsers what type of document the file is. This is the method that Google uses, and is reasonably easy to remember.Comment
-
if you start a html code to design a web page. Doctype is important.Comment
-
The DOCTYPE declaration is a top-level tag-like reference known as a Public Text Identifier. It should appear at the very beginning of an HTML/XHTML document in order to identify the content of the document as conforming to a particular HTML DTD specification. Historically, including a DTD was not required by browsers; they just interpreted a document according to what elements and attributes it understood.Comment
-
Comment