What does a DOCTYPE do?

Technology CommunityCategory: HTML5What does a DOCTYPE do?
VietMX Staff asked 3 years ago

DOCTYPE is an abbreviation for “document type”. It is a declaration used in HTML to distinguish between standards mode and quirks mode. Its presence tells the browser to render the web page in standards mode.

Moral of the story – just add <!DOCTYPE html> at the start of your page.