The ! is used for comments () and to define the DOCTYPE () of the HTML document. The DOCTYPE describe some characteristics of the document such as the root of the XML/XHTML/HTML file (in HTML usually is ), a DTD, a Public Identifier and other subset declarations.