Use of Complex Structures for Layout Tables

Use of Complex Structures for Layout Tables

WCAG Focus: WCAG 1.3.1 (A), 1.3.2 (A)

When a table used purely for visual layout employs colspan, rowspan, or <th> cells to build asymmetric sidebars and banners, screen readers struggle to interpret reading order and users cannot distinguish layout containers from true tabular data.

Why This Pattern Violates WCAG

WCAG 1.3.1 (Level A) and 1.3.2 Meaningful Sequence (Level A) require reading order to remain logical and forbid data-table markup inside layout tables (Failure F46).

Code Comparison

Complex Merged Layout Table

<table role="presentation">
  <tr><td colspan="2">Banner</td></tr>
  <tr><td rowspan="2">Sidebar</td><td>Article</td></tr>
</table>

Compliant Semantic CSS Grid Layout

<div class="page-grid">
  <section>Banner</section>
  <aside>Sidebar</aside>
  <article>Article</article>
</div>

How to Fix It in WordPress

  • Replace multi-span layout tables with WordPress Group and Columns blocks.
  • Never use <th>, <caption>, or summary inside any table marked role=”presentation”.

Finding This Issue Automatically

Legacy page templates and newsletter imports frequently bury complex colspan/rowspan layout tables. The WP ADA Compliance Check plugin flags complex layout table structures so you can migrate them to accessible CSS layouts.

Subscribe

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

Cart Accessibility Tools
hide