How to Make Data Tables Accessible
Accessible data tables mark header cells with th and data cells with td, so screen readers can tell people which row and column each value belongs to. Add scope to clarify direction, use headers and id only for complex tables, and give the table a caption. This is part of WCAG success criterion 1.3.1, Level A.
ADASupport · Published and sources checked November 28, 2026

Which WCAG rule covers data tables?
Success criterion 1.3.1, Info and Relationships, Level A, requires that information, structure and relationships conveyed through presentation can be programmatically determined or are available in text. For a table, the visual grid tells sighted readers which header goes with each value. The markup has to carry those same relationships for assistive technology.
W3C’s tables tutorial explains why this matters: screen reader users hear the headers as they move between cells, and people who apply their own style sheets may re-render a table as a list, which only works if the structure is marked up. W3C lists failures for tables that include using th elements in layout tables, using pre-formatted text for tabular information, incorrect headers and id associations, and incorrectly marked-up table headers.
Read W3C’s Understanding Info and Relationships and the WAI Tables Tutorial. Our guide to headings and labels covers the same idea for page structure.
When is th alone enough for a table header?
W3C’s one-header tutorial says a th element on its own is acceptable for a small table where the content of each column or row is clearly distinct. Its example is a short table of dates, events and venues. Even there, W3C notes that some screen readers may read all three headers in the last cell, because th alone does not say whether a header applies down a column or across a row.
When the data could be confused, such as first name, last name and city, or when the table is larger, add scope="col" to each column header. W3C technique H51 sets the baseline test: wherever information is presented as a table, check that it uses table markup with at least table, tr, th and td elements.
See W3C’s tables with one header tutorial and technique H51.
How do you use scope for row and column headers?
For a table with both a header row and a header column, mark both with th, then add scope="col" to the column headers and scope="row" to the row headers. W3C’s two-headers example is an opening-times table with days across the top and times down the first column. The row headers do not have to be in the first column: W3C shows the same pattern with row headers in the second column.
Technique H63 checks that each th in a data table has a scope value of row, col, rowgroup or colgroup. The same technique notes that simple tables with headers only in the first row or column need just th, so treat scope as required whenever a table has headers in both directions or any risk of ambiguity.
See W3C’s tables with two headers tutorial and technique H63.
How do you mark up headers that span several columns or rows?
A header that spans several columns, such as a heading over a pair of related columns, uses scope="colgroup" with the columns defined by colgroup elements. A header that spans several rows uses scope="rowgroup", with those rows wrapped in their own tbody element. The individual column headers below a group header keep scope="col".
W3C recommends using thead, tbody and tfoot in every table, even one without spanning headers. A table can have one thead and one tfoot but any number of tbody elements, which is what lets each row group carry its own header.
See W3C’s tables with irregular headers tutorial.
When should you use the headers and id attributes?
Use headers and id when scope cannot describe the relationships: when three or more headers apply to each data cell, or when headers repeat or change partway through the table. Give each header cell a unique id, then list the ids of every header that applies in the data cell’s space-separated headers attribute.
W3C says that in many cases it is worth restructuring such a table instead, and shows one multi-level table split into two simpler tables, one per location. Simple tables are also better supported by content editors. Technique H43 tests that each headers value matches a real header id, that every relevant header is listed, and that all ids are unique. Layout tables should have no id or headers attributes on cells.
See W3C’s multi-level headers tutorial and technique H43.
Does a data table need a caption or summary?
A caption works like a heading for the table: most screen readers announce it, and W3C calls it the main way people identify tables when navigating in table mode. Put it in a caption element as the first child of table. Technique H39 checks that a data table with a title has a caption element containing that title. W3C notes that captions and summaries are not required in every case to meet WCAG, but a caption is useful in most situations.
A summary describes how a complex table is organized, and W3C says it is usually only needed for complex tables. Its tutorial shows three approaches: text nested inside the caption, a nearby paragraph referenced with aria-describedby, or a figure and figcaption around the table. It warns that aria-describedby may have weaker support and that the figure approach can cause the text to be read more than once. Keep the summary different from the caption.
See W3C’s caption and summary tutorial and technique H39.
Can wide data tables scroll sideways on mobile?
Yes. The Reflow success criterion, 1.4.10, Level AA, lists data tables among content that needs a two-dimensional layout for usage or meaning, so a data table may scroll horizontally on a narrow screen. The exception covers the table as a whole, not individual cells, and not the related heading, search field or pagination around it.
W3C’s Understanding Reflow page notes that placing the table in its own scrollable container lets the rest of the page reflow normally. Make sure keyboard users can reach and scroll that container, and test the page at 320 CSS pixels wide.
Read W3C’s Understanding Reflow and our reflow guide.
How do you test a data table for accessibility?
Start with markup. Confirm tabular data uses table, tr, th and td rather than styled div elements or pre-formatted text. Check that each header is a th, that scope values are row, col, rowgroup or colgroup, and that any headers attribute points to real, unique ids. Confirm the table has a caption when it has a title, and that layout tables carry no th, caption, scope or headers.
Then move through the table with a screen reader’s table navigation commands. In each data cell, the announced row and column headers should match what a sighted reader sees. If you have to stop and work out what a number means, simplify the table or split it. Repeat the check in PDFs and spreadsheets you publish, where the same relationships need to be tagged.
For tables inside documents, see our guide to accessible PDFs.
Does the ADA Title II web rule cover data tables?
Yes. The Title II rule for state and local governments adopts WCAG 2.1 Level AA, which includes Info and Relationships and Reflow. ADA.gov says an interim final rule published April 20, 2026 set the compliance dates at April 26, 2027 for entities serving 50,000 or more people, and April 26, 2028 for smaller entities and special district governments.
Budgets, meeting schedules, fee schedules, election results and service statistics are commonly published as tables on government sites. Fixing the templates and the content editor workflow that produce them usually corrects many pages at once.
Read the ADA.gov fact sheet on the Title II web rule and our Title II web rule overview.
This guide is educational and does not establish website conformance or provide legal advice.
Frequently asked questions
Which WCAG rule covers data tables?
Success criterion 1.3.1, Info and Relationships, Level A. The header-to-cell relationships a sighted reader sees in the grid must be programmatically determined, so screen readers can announce them.
When is th alone enough for a table header?
W3C says th alone is acceptable for a small table where each column or row is clearly distinct. For larger tables or data that could be confused, add scope="col" or scope="row".
How do you use scope for row and column headers?
Mark both the header row and the header column with th, then add scope="col" to column headers and scope="row" to row headers. Allowed values are row, col, rowgroup and colgroup.
How do you mark up headers that span several columns or rows?
Use scope="colgroup" with colgroup elements for a header over several columns, and scope="rowgroup" with the rows wrapped in their own tbody for a header over several rows.
When should you use the headers and id attributes?
When three or more headers apply to each data cell, or headers change partway through the table. W3C suggests considering splitting such a table into simpler tables instead.
Does a data table need a caption or summary?
A caption element identifies the table and is useful in most situations, and W3C technique H39 checks for it when a table has a title. A summary is usually only needed for complex tables.
Can wide data tables scroll sideways on mobile?
Yes. WCAG Reflow (1.4.10) excepts data tables from the no-two-dimensional-scrolling rule. Individual cells and the surrounding page content must still reflow.
How do you test a data table for accessibility?
Check the markup for th, scope, headers and caption, then navigate the table with a screen reader and confirm each cell announces the same headers a sighted reader would see.
Does the ADA Title II web rule cover data tables?
Yes. The rule adopts WCAG 2.1 Level AA, which includes Info and Relationships and Reflow. ADA.gov lists compliance dates of April 26, 2027 for larger entities and April 26, 2028 for smaller ones and special districts.