Skip to main content
🚀 See how 20+ AI Agents can make your QA faster and smarter. Join 10k+ QAs at global leadership summit! Register Now
No Result Found
Connect & Get help from fellow developers on our Discord community. Ask the CommunityAsk the Community

contentinfo-landmark

Rule Severity : Moderate

Description

The contentinfo-landmark rule ensures that footer content of a page is correctly identified using the contentinfo landmark.

This rule meets WCAG requirements by:

  1. Exposing Structure (WCAG 1.3.1 Info and Relationships): It programmatically determines the main region containing information about the parent document (e.g., copyright, privacy links).
  2. Enabling Navigation (WCAG 2.4.1 Bypass Blocks): It allows users of assistive technologies (like screen readers) to quickly jump to the end of the page or bypass this block of repeated content efficiently.

To comply with this rule, you need to wrap the footer content in a <footer> element or use the role="contentinfo" ARIA attribute on the element containing the page’s footer content.

Examples

In the following incorrect example, the footer content is not wrapped in a <footer> tag. A role="contentinfo" is not used either. The absence of both removes semantic meaning from the footer content.

Incorrect Sample
Copy icon Copy

The following corrected example includes the <footer> tag, ensuring the landmark is explicitly exposed to assistive technologies.

Correct Sample
Copy icon Copy

How to fix?

To fix violations of the contentinfo-landmark rule, follow these steps:

  • Identify the element that contains the primary footer content for the document.

  • Enclose the element in a <footer> tag, or use role="contentinfo" attribute to this container element.

  • If you have secondary footers (e.g., a footer within an <article>), do not apply role="contentinfo" to them.

Reference

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback

Is this page helping you?

Yes
No

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback!

Talk to an Expert
Download Copy Check Circle