tables

Solid

Load this skill whenever the project contains HTML data tables (<table> elements). Under no circumstances use tables for layout purposes. Absolutely always include <th> elements with appropriate scope attributes, a <caption> or aria-labelledby, and ensure complex tables have headers associated with data cells. Apply these rules to every data table without exception.

AI & Automation 35 stars 2 forks Updated today AGPL-3.0

Install

View on GitHub

Quality Score: 79/100

Stars 20%
52
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Tables Accessibility Skill > **Canonical source**: `examples/TABLES_ACCESSIBILITY_BEST_PRACTICES.md` in `mgifford/ACCESSIBILITY.md` > This skill is derived from that file. When in doubt, the example is authoritative. Apply these rules when creating or reviewing HTML data tables. **Only load this skill if the project contains data tables.** --- ## Core Mandate Use tables for information whose meaning depends on relationships between rows and columns. Mark those relationships in HTML so users can identify the table, navigate its cells, and hear the relevant headers with each value. The complexity of the markup should match the complexity of the information — simplifying or splitting a table is often better than adding increasingly complicated header associations. **Never use tables for layout.** Use CSS Grid/Flexbox instead. Do not turn a reading-oriented data table into an application-style grid (`role="grid"`) unless users genuinely need spreadsheet-like keyboard interaction. --- ## Severity Scale (this skill) | Level | Meaning | |---|---| | **Critical** | Table data is completely uninterpretable by screen reader users | | **Serious** | Headers missing or misassociated; complex table with no navigation aid | | **Moderate** | No name for the table when multiple tables share a page; zebra stripes lost in forced-colours without fallback | | **Minor** | `<thead>`/`<tbody>` absent; obsolete `summary` attribute used | --- ## Choose the Correct Structure First * A **li...

Details

Author
mgifford
Repository
mgifford/accessibility-skills
Created
4 months ago
Last Updated
today
Language
JavaScript
License
AGPL-3.0

Similar Skills

Semantically similar based on skill content — not just same category