DOCTYPE informs the browser about the type of HTML used on a web page. Browsers use DOCTYPE to understand how to render a page. If DOCTYPE is not used or if the wrong DOCTYPE is used, the pages load in Quirks mode.