Ensure Headings Have Discernible Text

Photo of Researcher
Yotam Flohr
Researcher
Blind Hearing Mobility
WCAG 2.1 Level A

Written and researched for humans by humans

Photo of Researcher
Yotam Flohr
Researcher
Photo of Expert
Ritvik Shrivastava
Expertly reviewed by
Comments: 0
Your entire domain
Get detailed instructions on how to resolve every accessibility issue on your website

When at least one heading element is present, it should ideally contain content.

Why It Matters

Screen readers announce heading tags to users. However, if the heading is empty or the text cannot be accessed, it can create a confusing experience.

This is important because headings relay the structure of a webpage, so it’s important that screen reader users can access the content.

Headings with discernible text also have SEO benefits.

Fixing the Issue

Developers must ensure that headings contain content and that it is screen-reader accessible.

Effective headings give users a good general idea of the page’s contents.

Make sure that you are using the correct heading markup (<h1> through <h6> elements) too.

Bad Code Examples

Code example
<h1></h1><h1 aria-hidden="true">Heading Text</h1> Copy