DOCTYPE contains the instructions for the web browser about what markup language’s version has been used for writing the web page. It is the first declaration made in the HTM document (before <html>). The declaration points to the DTD (Document Type Definition) that has the rules of the markup language. A browser uses this declaration for correctly interpreting the content.