Skip to main content

HTML Guide

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">
  <!-- footer content -->

Using the <footer> element instead is recommended:

  <!-- footer content -->

Learn more:

Related W3C validator issues