Document type declaration is a teaching specified to the browser to intimate about the HTML version. It is not case complex and is typically printed at the opening before the html tag, and it does not need end tag. It is significant in the old versions of HTML, whereas for HTML5 is not compulsory to declare it in the opening.