Tables With Header Cell IDs Not Used Inside a Headers Attribute
WCAG Focus: WCAG 1.3.1 (A) · Technique H43
When authors or table plugins assign id attributes to <th> cells in a complex table—yet forget to reference those IDs inside <td headers="…"> (or edit the table later and break the mapping)—assistive technology loses the intended multi-level association.
Why This Pattern Violates WCAG
WCAG 1.3.1 (Level A) and Technique H43 rely on matching id attributes on <th> cells with headers="…" lists on <td> cells. Unused header IDs reveal incomplete or broken table markup.
Code Comparison
Orphaned TH IDs Without Matching Headers Attribute
<tr><th id="col-jan">January</th></tr>
<tr><td>$1,200</td></tr>
Compliant Scope (Simple Table) or Matched Headers Attribute
<tr><th scope="col" id="col-jan">January</th></tr>
<tr><td headers="col-jan">$1,200</td></tr>
How to Fix It in WordPress
- In complex tables, ensure every <th> id is referenced by its corresponding <td headers="…"> cells.
- In simple tables, remove unnecessary header IDs and rely cleanly on scope="col" / scope="row".
Finding This Issue Automatically
Auditing hundreds of table cell IDs and headers references manually is tedious. The WP ADA Compliance Check plugin validates header cell IDs against table headers attributes automatically so broken mappings never slip into production.
Subscribe
Subscribe to receive daily Web Accessibility - Did you know? articles in your inbox.

