Skip to main content
WCAGrules
Quick navigation

Tag PDF tables as real tables

Data tables in a PDF need real table tags, Table, TR, TH and TD, so screen readers can announce the right header with each cell. Content counts as tabular when the relationships between the values run in two directions, down and across. Tables drawn with tab stops, rules, or text boxes have no structure at all. W3C publishes PDF6 as a sufficient technique, and it comes with two details people miss. Cells that span rows or columns need a RowSpan or ColSpan attribute, and a table with blank cells often needs empty TD cells added so every row and column holds the same count. Word and InDesign export a simple header row correctly. Row headers and anything complex have to be finished in a PDF editor, and OpenOffice Writer can only mark column headings, never row ones.

How we find it in an audit

We navigate the table with a screen reader's table commands and check whether row and column headers are announced as we move between cells. In Acrobat's Tags panel we confirm the Table, TR, TH and TD structure matches the visual grid, and we look specifically at merged cells and blank cells, because those are where an export that looked fine falls apart.

How affected users experience it

An untagged table reads as one long stream of values with no headers. "January 4,210.00 3,975.50 February", on and on. In a fee schedule or account statement, the reader has to count cells and hold the whole grid in memory to know which column a figure belongs to. Most people give up and phone instead.

Passes vs. fails

Passes: headings exist in the code. Fails: one flat wall of text.

Passes

The statement uses a tagged table. TH cells mark "Symbol", "Shares", "Price" and "Value", the two-column merge in the totals row carries a ColSpan, and each cell announces its column header. "Price, 214.30".

Fails

A brokerage statement lays out holdings with tab stops. A screen reader reads "AAPL 120 214.30 25,716.00" with no way to tell shares from price from market value.

How this gets tested

The W3C publishes test rules that define what a checker looks for here.

Other ways to satisfy this rule

52 guides on this site are filed under 1.3.1 Info and Relationships. W3C lists this one as sufficient for that rule when used for making information and relationships conveyed through presentation programmatically determinable, so the condition is part of the test rather than a footnote to it.

This guide is our interpretation of W3C technique PDF6: Using table elements for table markup in PDF Documents. W3C publishes its techniques as guidance rather than as the standard, and says so on every one of them. The success criterion is what conformance is measured against, and a technique is one documented way to meet it.

Go somewhere useful

Find tools, resources and your workspace.

29 destinations