table-headers
What it does
This skill checks that data tables use header cells with the right scope. It is for developers and editors who build tables on websites.
When to use it
- ✓When a data table uses regular cells where header cells should be.
- ✓When header cells have no scope attribute.
- ✓When a screen reader review says the table is hard to understand.
Skill link
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/table-headers/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“My HTML table looks fine, but a screen reader reads it confusingly. How do I fix the headers?”
5 new skills a week. 1 minute to read.
How it works
The agent changes header cells to the proper header element and adds a scope value. This tells assistive technology whether each header describes a column or a row.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Define proper table headers
Properly defined headers allow screen readers to announce the context for each data cell, making complex tables understandable.
Quick Reference
- Use
<th>for all table headers, not<td> - Apply
scope="col"orscope="row"to clarify header relationship - Ensure every data cell is associated with at least one header
- In simple tables, prefer fixing header associations before escalating to caption-level recommendations
- Missing
scope="col"on a straightforward header row is often the clearest first fix
Check
Check that all data tables use <th> elements for headers with appropriate scope attributes.
Fix
Convert header cells to <th> and add the correct scope attribute.
Explain
Explain how <th> and scope help assistive technologies communicate the structure of data tables.
Code Review
Review the rendered markup and interactive states that affect Define proper table headers. Flag exact elements, roles, labels, focus behavior, or keyboard interactions that violate the rule, and note how to verify the fix with browser accessibility tooling or assistive tech.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/accessibility/table-headers
FAQ
What does scope do?
Scope tells assistive technology whether a header applies to a column or to a row.
Is a simple table fixed the same way as a complex one?
For simple tables, the skill says fixing header associations usually comes first. Complex tables may need more work.
Which element should headers use?
Headers should use the th element, not td.
Details
Original description by the author
Use when reviewing rendered HTML, interactive components, or design-system patterns related to Define proper table headers. Check native semantics first, then inspect keyboard behavior, focus flow, accessible names, and screen-reader output where relevant.
Popularity
- GitHub stars
- 75k
- Ranking position
- #3046
- License
- MIT
- Updated
- 10/31/2026
Comments
- …
More skills from this repository
frontendchecklist
75kChecks frontend code and live pages against 380+ rules for accessibility, speed, SEO and security, using a command-line tool.
frontend-checklist-global
75kAudits a frontend project against all 386 Front-End Checklist rules, and gives a specific fix for each issue found.
404-page
75kChecks that your missing-page screen offers helpful links and returns a real 404 status, to help lost visitors find their way.
about-page
75kReviews whether your site has a clear About page that explains who runs it, to build trust with visitors and search engines.
Similar skills
angular-developer
280kHelps your agent create Angular code and give project structure advice. Useful for starting new projects, creating code parts, or improving performance and accessibility.
frontend-a11y
280kHelps your agent make web interfaces accessible to everyone. It ensures websites and apps work well with screen readers and keyboard navigation.
frontend-patterns
280kHas your agent apply modern patterns in frontend development. It optimizes performance, manages state, and follows best practices in React and Next.js.