A
Document Type Declaration, or DOCTYPE for short, is an instruction to the web browser about the version of markup language in which a web page is written. ... With HTML5 this is no longer the case and the
doctype declaration is only needed
to enable the standard mode for documents written using the HTML syntax
SOURCE:
https://www.tutorialrepublic.com/html-tutorial/html-doctypes.php