Empty Heading Tags
WCAG Focus: WCAG 1.3.1 (A), 2.4.6 (AA)
When an editor hits Enter inside a Gutenberg Heading block and leaves it blank—or uses an empty <h2> </h2> for vertical spacing—the browser still exposes a heading landmark with zero text. Screen reader users jumping between headings hear confusing announcements like "Heading level 2, blank."
Why This Pattern Violates WCAG
WCAG 1.3.1 Info and Relationships (Level A) and 2.4.6 Headings and Labels (Level AA) require headings to contain meaningful text that describes the section that follows.
Empty headings break outline navigation and waste time for assistive technology users scanning the page.
Code Comparison
Inaccessible Empty Heading
<h2> </h2>
<p>Welcome to our accessibility handbook.</p>
Compliant Heading With Text
<h2 class="section-heading">Accessibility Handbook Overview</h2>
<p>Welcome to our accessibility handbook.</p>
How to Fix It in WordPress
- Delete blank Heading blocks in Gutenberg and never use heading tags solely as vertical spacers.
- If a heading wraps only an icon or image, provide meaningful alt text or visually hidden text inside the heading.
Finding This Issue Automatically
Stray empty heading tags are virtually invisible in the WordPress visual editor but glaring in a screen reader’s heading list. The WP ADA Compliance Check plugin detects empty <h1> through <h6> tags and will automatically fix the issue by removing empty heading tags from page content.
WCAG References & Supporting Materials
WCAG Success Criteria
- Understanding WCAG 1.3.1 Info and Relationships (Level A)
- Understanding WCAG 2.4.6 Headings and Labels (Level AA)
Supporting Documentation & Guides
- W3C Technique H42: Using h1-h6 to identify headings — Using proper semantic heading elements in hierarchical order.
- W3C Technique G130: Providing descriptive headings — Guidance on writing clear, non-empty headings that describe each section.
- W3C WAI Tutorial: Page Structure — Proper heading hierarchy and semantic page-region organization.
Subscribe
Subscribe to receive daily Web Accessibility - Did you know? articles in your inbox.

