Skip to content

Rule · Accessibility

Heading is empty

a11y/empty-headingwarnvoid a11yupdated

Why it matters

Empty headings appear as blank entries in the screen-reader heading list, which breaks navigation by headings.

How to fix it

Remove the empty heading element, or give it text (visually-hidden text if needed); never use headings only for spacing.

References

void a11y reports 48 rules in this category. WCAG 2.2 AA through axe-core, plus checks axe can't do alone: visible keyboard focus, 24/44px target size on mobile, 320px reflow and disabled zoom.