Complex Data Tables That May Not Be Correctly Interpreted by Screen Readers

Complex Data Tables That May Not Be Correctly Interpreted by Screen Readers

WCAG Focus: WCAG 1.3.1 (A)

Financial matrices and academic schedules often merge header cells with colspan and rowspan across two or three header tiers. Standard scope attributes cannot express multi-level relationships reliably, causing screen readers to misread cell headers.

Why This Pattern Violates WCAG

WCAG 1.3.1 Info and Relationships (Level A) and Technique H43 require multi-tier data tables to bind each <td> explicitly to all applicable <th> IDs via the headers="…" attribute—or better yet, simplify into multiple clear single-header tables.

Code Comparison

Unlinked Multi-Tier Table With Colspan

<table>
  <tr><th colspan="2">2026</th></tr>
  <tr><th>Q1</th><th>Q2</th></tr>
  <tr><td>$10k</td><td>$14k</td></tr>
</table>

Compliant Headers/ID Mapping

<table>
  <tr><th id="y2026" colspan="2">2026</th></tr>
  <tr><th id="q1" headers="y2026">Q1</th><th id="q2" headers="y2026">Q2</th></tr>
  <tr><td headers="y2026 q1">$10k</td><td headers="y2026 q2">$14k</td></tr>
</table>

How to Fix It in WordPress

  • Split overly complex merged tables into separate simple tables whenever possible.
  • When merged headers are unavoidable, assign unique id attributes to each <th> and list them in each data cell’s headers attribute.

Finding This Issue Automatically

Imported spreadsheets with merged cells silently break screen reader table navigation. The WP ADA Compliance Check plugin flags complex data tables automatically so you can simplify them or add explicit headers/id bindings.

Subscribe

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

Cart Accessibility Tools
hide