heading-purpose
Rule Severity : Moderate
Description
Headings must be relevant and clearly describe the content that follows. This ensures that users, especially those relying on assistive technologies, can understand the structure and navigate the content efficiently.
The heading-purpose
rule aligns with WCAG Success Criterion 2.4.6 (Headings and Labels), which requires that headings and labels describe the topic or purpose of the content.
Examples
In the following example, the heading does not accurately describe the content that follows, violating the heading-purpose
rule.
In the corrected example, the heading accurately reflects the content below it:
How to fix?
To fix violations of the heading-purpose
rule, follow these steps:
- Review all headings on the page.
- Ensure each heading clearly and accurately describes the content that follows.
- Avoid vague or misleading headings.
- If the content under a heading changes, update the heading to reflect the new content.
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
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!