Skip to main content

HTML Guide

Free site validation

Find out what web pages on your sites are affected by HTML issues.

Start tag seen without seeing a doctype first. Expected “<!DOCTYPE html>”.

HTML documents are expected to start with a first line containing the Document Type Declaration, that defines the HTML version used. Since HTML5, it’s just <!DOCTYPE html>, which must appear before the start <html> tag.

Here’s an example of a minimal HTML5 document:

<!DOCTYPE html>
<html>
  <head>
    <title>Test</title>
  </head>
  <body>
    <p></p>
  </body>
</html>

Related W3C validator issues