Doctypes… What are they?

Doctypes… What are they?

The <!DOCTYPE> declaration is a top-level tag-like reference known as a Public Text Identifier. It is used to activate, or switch between browser modes. The <!DOCTYPE> declaration is the very first thing in your document, before the <html> tag. This tag tells the browser which HTML or XHTML specification the document uses. Without a doctype declaration in the beginning of a html document, the browser will run in Quirks mode, and not in Standards mode. It is also one of the few tags without a closing tag.

Read more on Doctypes… What are they?…