A doctype or Document Type Declaration is an instruction that defines the version of HTML being used in a webpage. It is placed at the beginning of an HTML document to inform the web browser on how to render the content of the page. For HTML5, the doctype is written as . Without properly declaring the doctype, standards-compliant browsers may go into “quirks” mode and render the page differently.