HTML Checking for Large Sites

Rocket Validator automatically checks your pages on the W3C Validator.

Stray start tag “style”.

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

Although in general it’s better to put your styles in external stylesheets and apply them using <link> elements, CSS styles can also be included inside a document using the <style> tag. In this case, it should be placed within the <head> section, like in this example:

<!DOCTYPE html>
      p {
        color: #26b72b;
    <p>This text will be green.</p>

Learn more:

* MDN: style element

Related W3C validator issues

Still checking your large sites one page at a time?

Save time using our automated web checker. Let our crawler check your web pages on the W3C Validator.