Tables
Tables show tabular data in columns and rows.
Accessibility
- Use tables only to display tabular data.
- Simple tables can have two levels of headers. Each header cell should have
scope=
or'col' scope=
.'row' - Complex tables are tables with more than two levels of headers. Each header should be given a unique
id
and each data cell should have aheaders
attribute with each related header cell’sid
listed. - When adding a title to a table, include it in a
<caption>
tag inside of the<table>
element.