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

empty-heading

できること

このスキルは、ページのすべての見出しに読めるテキストがあるかを確認します。ページ構造を分かりやすくしたい開発者や編集者向けです。

使う場面

  • ✓ページの見出しタグの中に文字がないとき。
  • ✓スクリーンリーダーが、ページの構造に空白の見出しを読み上げるとき。
  • ✓見出しを余白やデザインのためだけに使っているとき。

スキルのリンク

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

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

使い方

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

貼り付け用メッセージ

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

AIへの頼み方の例

“私のページにある空の見出しを見つけてもらえますか。”

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

仕組み

エージェントは h1 から h6 までの見出しタグをスキャンし、空または空白だけの内容を探します。説明的なテキストを追加するか、見出しを削除することを提案します。

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

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

Ensure headings contain text

Empty headings create 'ghost' stops in the document outline, confusing users who rely on headings to navigate and understand the page structure.

Quick Reference

  • Add visible, descriptive text to all heading elements (h1-h6)
  • Avoid using headings solely for styling or as empty placeholders
  • Ensure document structure is meaningful for screen reader navigation

Check

Find any heading tags (h1 through h6) that are empty or contain only non-perceivable whitespace.

Fix

Add descriptive text content to the empty heading or remove the heading tag if it's not needed.

Explain

Explain why meaningful heading content is vital for document navigation and accessibility.

Code Review

Review the rendered markup and interactive states that affect Ensure headings contain text. 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/empty-heading

よくある質問

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

スクリーンリーダーの利用者は見出しを手がかりに移動するため、空の見出しがあると混乱の原因になります。

見出しを余白の調整に使ってもよいですか?

このスキルは、見出しを装飾のためだけに使うことに反対しています。

見出しにはどのような文を入れるべきですか?

このスキルは、続くセクションの内容を説明する、目に見える具体的なテキストを入れるよう勧めています。

詳細

作者による元の説明

Use when reviewing rendered HTML, interactive components, or design-system patterns related to Ensure headings contain text. 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
ランキング
#2831
ライセンス
MIT
更新日
2026/10/31

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

0

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

コメント

  • …

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

似ているスキル