HTML Checking for Large Sites

Rocket Validator automatically checks your pages on the W3C Validator.

The “type” attribute for the “style” element is not needed and should be omitted.

The HTML <style> element contains style information for a document, or part of a document, defined in CSS. This element does not need the type attribute anymore, so it should be omitted.

For example, this style defines that <p> elements should be in red color.

<style type="text/css">
p {
  color: red;
}
</style>
<p>This text will be red.</p>

But, the type attribute is not used anymore, so we can just use this:

<style>
p {
  color: red;
}
</style>
<p>This text will be red.</p>

Read more:

MDN: The Style information element WordPress plugin: Type Attribute Warnings Removal

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.