Incorrect Use of Linebreaks to Create White Space

Incorrect Use of Linebreaks to Create White Space

WCAG Focus: WCAG 1.3.1 (A) · Usability

To push a button or paragraph further down a WordPress page, editors sometimes hit Shift+Enter repeatedly—producing strings of <br><br><br><br>. Screen readers often announce each break as "blank" or pause awkwardly while stepping through empty lines.

Why This Pattern Violates WCAG

WCAG 1.3.1 Info and Relationships (Level A) promotes separating semantic content structure from visual presentation.

Visual spacing belongs in CSS margins and padding or Gutenberg Spacer/Group spacing controls—not repeated HTML line breaks.

Code Comparison

Inaccessible Stacked Line Breaks

<p>First paragraph.<br><br><br><br>Second section.</p>

Compliant CSS Margin Spacing

<p style="margin-bottom: 2rem;">First paragraph.</p>
<p>Second section.</p>

How to Fix It in WordPress

  • Replace consecutive <br> tags with separate <p> blocks and CSS margin/padding utilities.
  • Reserve <br> strictly for genuine line divisions inside poetry or postal addresses.

Finding This Issue Automatically

Content migrated from older blogs or pasted from emails often hides stacks of <br> tags inside Classic blocks. The WP ADA Compliance Check plugin spots repeated line breaks used as artificial white space so editors can tidy up spacing cleanly.

WCAG References & Supporting Materials

WCAG Success Criteria

Supporting Documentation & Guides

Subscribe

Subscribe to receive daily Web Accessibility - Did you know? articles in your inbox.

Cart Accessibility Tools
hide