Start scanning free

( Operable / WCAG 2.4.6 )

Heading is empty or contains only whitespace

This check maps to Headings and Labels. Use the guidance below to confirm the issue, understand who it affects and ship a fix.

Moderate Level AA WCAG 2.4.6 — Headings and Labels

What’s wrong

A heading element (<h1> through <h6>) exists in the DOM but contains no text.

Why it matters

Screen reader users navigate pages by heading. An empty heading creates a phantom stop — the screen reader announces “heading level 2” but says nothing, leaving the user confused about what section they’ve entered.

How to fix it

Either add meaningful text to the heading, or remove it and use CSS for the visual effect you need.

Before
<h2></h2>
<h3 style="margin-top: 2rem;"></h3>
After
<h2>Our latest features</h2>

<!-- For spacing only, use CSS on content -->
<section style="margin-top: 2rem;">
  <p>Content here</p>
</section>

Learn more