The doctype is not a HTML tag and Its provide the instruction to the web browsers about what version of HTML page is going to written(load). The < !doctype html > must be declare before the < html > tag and it's not case sensitive. The browser use this doctype information to render page correctly. The doctype not have the opening and closing tag like html.
Angular, React, JavaScript, Java, PHP, SQL, C#, Vue, NodeJs, TypeScript and Interview Questions Answers