How to fix: empty headings
Best practice (not a WCAG requirement)
Why it matters
Screen readers announce a heading with nothing in it.
How to fix
Remove empty heading tags or add text to them.
<h2>Our stores</h2>
Test it yourself
- List all headings (screen reader heading list, or Inspect): any heading with no text is a problem.
Common mistakes
- Page builders leaving empty heading blocks used only for spacing.
- A heading that contains only an icon or image without alt text.
Check your own site
Find this and other problems on your website in 30 seconds, free.