HTML Checking for Large Sites

Rocket Validator automatically checks your pages on the W3C Validator.

The “contentinfo” role is unnecessary for element “footer”.

The <footer> element represents a footer for its nearest sectioning content, and has an implicit role of contentinfo, so specifying this role is redundant.

The following example marks a <div> as a footer specifying its role:

<div role="contentinfo">
  <h2>Footer</h2>
  <!-- footer content -->
</div>

Using the <footer> element instead is recommended:

<footer>
  <h2>Footer</h2>
  <!-- footer content -->
</footer>

Lear more:

MDN: ARIA contentinfo role MDN: footer * HTML Spec: the footer element

Related W3C validator issues

When was the last time you validated your whole site?

Keep your sites healthy checking for A11Y/HTML issues on an automated schedule.