HTML Checking for Large Sites

Rocket Validator automatically checks your pages on the W3C Validator.

Stray start tag “script”.

A <script> start tag has been found in an unexpected place in the document structure. Check that the <script> section appears within the <head> or <body> sections.

Here’s an example of a script inserted in the head of the document:

<!DOCTYPE html>
<html>
  <head>
    <title>Test</title>
    <script>
      console.log("Hello from the head");
    </script>
  </head>
  <body>
    <p></p>
  </body>
</html>

Learn more:

* MDN: script element

Related W3C validator issues

50,000 Accessibility and HTML checks per month. Fully automated.

Let our automated scanner check your large sites using Axe Core and W3C Validator.