本文へスキップ
Skillpedia
WebサイトとUI(フロントエンド)75k · #3046

table-headers

できること

このスキルは、データ表が正しい scope を持つ見出しセルを使っているかを確認します。サイトに表を作る開発者や編集者向けです。

使う場面

  • ✓データ表で、見出しにすべき場所に通常のセルを使っているとき。
  • ✓見出しセルに scope 属性がないとき。
  • ✓スクリーンリーダーのレビューで、表が分かりにくいと指摘されたとき。

スキルのリンク

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/table-headers/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/table-headers/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“私のHTMLの表は見た目は問題ありませんが、スクリーンリーダーでは分かりにくく読まれます。見出しをどう直せばよいですか。”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントは、見出しセルを適切な見出しの要素に変更し、scope の値を追加します。これにより、支援技術は、各見出しが列と行のどちらに当てはまるかを判断できます。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)を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

よくある質問

scope は何をしますか?

見出しが列に当てはまるのか行に当てはまるのかを、支援技術に伝えます。

単純な表と複雑な表は同じ方法で直しますか?

単純な表では、見出しの関連付けを直すことが先です。複雑な表にはさらに作業が必要な場合があるとこのスキルは説明しています。

見出しにはどの要素を使うべきですか?

td ではなく th 要素を使うべきです。

詳細

作者による元の説明

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

人気

GitHubのスター
75k
ランキング
#3046
ライセンス
MIT
更新日
2026/10/31

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル