How PDF table tags work
An accessible table is tagged as Table containing TR rows, which contain TH header cells and TD data cells. Optional THead, TBody and TFoot groups organize rows. The Scope attribute on each TH says whether it labels its column, its row or both.
WCAG 1.3.1 Info and Relationships requires that the relationships between headers and data are programmatically determinable. The W3C's PDF technique PDF6 describes using table elements for this.
Simple versus complex tables
Simple tables with one header row and maybe one header column work well with scope alone. Complex tables, with merged cells or multiple header levels, may need the Headers attribute on each TD listing the IDs of the TH cells that apply.
Often the best fix for a complex table is to split it into simpler tables. Layout tables used only for positioning should not be tagged as tables at all.
Checking and fixing tables
Checkers can detect tables with no TH cells, inconsistent row lengths and missing scope. They cannot judge whether the chosen headers make sense; that needs a person.
Our accessible PDF tables tool detects table regions, tags rows and cells, and marks header cells with scope. Tables where header detection is uncertain are flagged for review in the editor.
Sources
This page is general information, not legal advice. Automated checks cannot prove full compliance; some requirements need human review.