Data table without
Identify row and column headers in data tables using
th elements, and mark layout tables with
Data tables allow screen reader users to understand column and row relationships. Layout tables read cells as a series of unrelated paragraphs with no tabular structure. Without
role, screen readers apply heuristics to decide whether a table is a layout table or data table. These heuristics vary greatly between screen readers, and are affected by browser being used, window size, and font size (so the outcome is very unpredictable without
role). If a data table has headers marked up using
td, then change these to
th. If a data table has no headers, add
th elements describing each row and/or column. If the table is only used for layout add
role=presentation to the
- WCAG 2.0 (Success Criteria: 1.3.1 level A)
- WCAG 2.1 (Success Criteria: 1.3.1 level A)
- WCAG 2.2 (Success Criteria: 1.3.1 level A)
- Section 508 (2017) (Success Criteria: 1.3.1 level A)
Note: Section 508 Refresh (2017) checkpoints are equivalent to WCAG 2.0 level A and level AA checkpoints.
Impact on users
- JAWS Treats tables without
roleas layout tables if the table contains cells above or below certain pixel sizes. This measurement is affected by browser window size, browser font size, and the browser used.
- NVDA Applies a layout table heuristic to tables without
rolewhich varies depending on the browser used and on the window size in some circumstances.
- VoiceOver Uses a sophisticated heuristic on tables without
role, which is similar (but not identical) to the heuristic used by NVDA with Firefox.
- 5.37 May 2020 Improved detection. Changed rule ID from AccWcag1-5.1.1 to AccHtmlTableNoHeaders.
- 5.6 Sep 2014 Updated to reflect results of screen reader testing.
- 5.5 May 2014 Updated to April 2014 version of Techniques for WCAG 2.0.
- 5.3 Sep 2013 Updated to Sept 2013 version of Techniques for WCAG 2.0.
- 4.2 Dec 2010 Modified layout table detection algorithm.
- 3.0 Dec 2008 Now triggers WCAG2 issue.
- 2.0 Dec 2007 Now triggers Section 508 issue.
- 1.0 Feb 2007 Added.
This page describes a web site issue detected in HTML documents by SortSite Desktop and OnDemand Suite.
Rule ID: AccHtmlTableNoHeaders