Accessible Tables Quick Guide
- Use tables only for data
- Use tables for data relationships
- Do NOT use tables for layouts
- Provide table header structure
- Your tables must have headers to be accessible
- Ensure header names are descriptive of the column or row data they govern
- If inspecting your code, table headers are defined in HTML with <th>
- Avoid Blank Cells
- Fill empty cells with “N/A”
- Ensure color contrast is sufficient if using colors
- Text must meet 4.5:1 contrast ratio
- Do not rely on color alone
- Use icons or text in addition to color
- Keep tables simple when possible
- Break large tables into smaller tables
- Avoid nesting tables
- Provide accessible alternatives if needed
- Include a summary or alternate format for complex tables
- Use AI to create these descriptions