Data or header cells should not be used to give caption to a data table
Log in (Premium content) Request a demo
The Algorithm, in Simple Terms
Why this is Important
Screen readers have a specific way of announcing tables. When tables are not properly marked up with a caption element, this creates the opportunity for confusing or inaccurate screen reader output.
How to Fix the Problem
To fix the problem, ensure the table has a caption (best practice), instead of a cells with a colspan to visually indicate a caption.
- HTML 4
- HTML 5