Skip to content
Skillpedia
Websites & UI (frontend)75k · #3046

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.md

Copy 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

Use this skill to help me: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/table-headers/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

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" or scope="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.

repo: thedaviddias/Front-End-Checklist

Popularity

GitHub stars
75k
Ranking position
#3046
License
MIT
Updated
10/31/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills