HTML & Semantics5 min readUpdated 2026-11-15
Creating Accessible Data Tables: <caption>, <thead> & <th scope>
Make data tables effortless to navigate in screen readers on desktop and mobile.
Key Takeaways
- Always use <th> with scope='col' or scope='row' for headers—never bold <td> cells.
- Provide a <caption> describing the table's purpose.
- Avoid merged cells and layout tables.
Responsive Overflow Without Breaking Reflow
Wrap wide tables in an overflow-x: auto container with tabindex='0' and role='region' so keyboard users can scroll wide columns.
Frequently Asked Questions
No—use CSS Grid/Flexbox for layout; if legacy layout tables exist, add role='presentation'.
Interactive Tools for This Guide
HTML Structure
Table Accessibility Checker
Check HTML tables for <th> header cells, scope attributes, and <caption> titles.
Open tool
ARIA & Dev
Accessible Table Generator
Create semantic HTML data tables with <caption>, <thead>, and <th scope>.
Open tool
PDF & Docs
Accessible Table Structure Generator
Design clean data tables with column/row headers and zero merged-cell confusion.
Open tool