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

th-has-data-cells

できること

このスキルは、表の見出しが説明するデータセルと一致しているかを確認します。ウェブサイトのデータ表を作る開発者や編集者向けです。

使う場面

  • ✓見出しセルの下や横にデータがない表があるとき。
  • ✓スクリーンリーダーの利用者にとって騒がしくなる空の見出しがあるとき。
  • ✓編集後の表が壊れた構造になっていないか確認したいとき。

スキルのリンク

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/th-has-data-cells/SKILL.md

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

使い方

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

貼り付け用メッセージ

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

AIへの頼み方の例

“表を編集したところ、一部の見出しの下に何もなくなりました。確認して整理してもらえますか。”

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

仕組み

エージェントは、各見出しを、説明しているデータセルと照らし合わせます。空の見出しを削除するか、対応するセルと一致するように関連付けを直します。

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

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Ensure table headers associate with data cells

Orphaned headers without data cells can confuse users of assistive technology and indicate a broken table structure.

Quick Reference

  • Every <th> must be associated with one or more <td> cells
  • Avoid empty headers that don't describe any data
  • Remove unnecessary headers to reduce screen reader noise

Check

Verify that all <th> elements are correctly associated with data cells.

Fix

Remove empty headers or ensure they are correctly mapped to data cells.

Explain

Explain why every header must have associated data to maintain an accessible table structure.

Code Review

Review the rendered markup and interactive states that affect Ensure table headers associate with data cells. 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/th-has-data-cells

よくある質問

空の見出しはなぜ問題なのですか?

スクリーンリーダーの利用者は見出しを聞きますが、対応するデータが見つからず、表が分かりにくくなるためです。

データのない見出しはどうすべきですか?

削除するか、説明しているセルと一致するように直すことをこのスキルは勧めています。

これは表の見た目についての話ですか?

いいえ。支援技術が読む構造についての話です。

詳細

作者による元の説明

Use when reviewing rendered HTML, interactive components, or design-system patterns related to Ensure table headers associate with data cells. 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
ランキング
#3055
ライセンス
MIT
更新日
2026/10/31

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

0

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

コメント

  • …

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

似ているスキル