Tables
Sometimes, a large amount of information is best displayed in a table. In order for this information to be correctly accessed by assistive technology, the content must be formatted correctly. You must assign headers to rows and/or columns, otherwise a screen reader will read the cell data linearly without giving any context for the information.
Best Practice
- Always use headers at the top of the columns, at the beginning of a row or in both places.
- Always include a caption describing what the table is about.
- Do not create tables by hand, either using tabs or styling text into columns.
- Set the width or height of the table to a percentage, not a fixed numerical value.