A Doctype Declaration is an instruction written for the web browser informing it about the version of HTML used to create the page. It is the very first entity written in an HTML document. Even the <html> comes after the Doctype Declaration. The HTML will be accepted or declined by the web browser depending on the version of HTML used to write the page.