Data display
Table
Data arranged in rows and columns, with headings that explain each column.
Demo
| Plan | Storage | |
|---|---|---|
| Free | $0 | 5 GB |
| Team | $12 | 1 TB |
| Personal | $4 | 100 GB |
Also known as
- Data table — Carbon Design System
- テーブル/データテーブル — デジタル庁デザインシステム
How to recognize it
A grid of cells with a bold header row at the top, separated by lines. Numbers are usually right-aligned.
Variations
- Data grid
- An interactive table where arrow keys move between cells, used when cells can be edited or selected.
Behavior
- The cells themselves are not interactive; screen readers announce the matching column and row headings while moving through cells.
- A sortable column has a button in its heading, and aria-sort tells which way it is sorted.
- Native <table>, <caption>, and <th scope> give the structure without extra ARIA.
Keyboard
| Key | Action |
|---|---|
| Tab | Moves only between controls inside the table, such as the sort button. |
| Enter / Space | On the sort button, switches between ascending and descending order. |
Usage notes
- Do not use it for layout or for pairs of names and values. Use a description list for those.
Similar components
- List: A table compares several values per row in columns; a list shows one item per row without columns.
- Description list: A table compares values across rows and columns; a description list shows name–value pairs for one subject.
Sources
- WAI-ARIA APG: Table Pattern (Last checked: )
- WAI-ARIA APG: Grid Pattern (Last checked: )
- Carbon Design System: Data table (Last checked: )
- デジタル庁デザインシステムウェブサイト「テーブル/データテーブル」をもとに作成 (Last checked: )