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

landmark-one-main

できること

このスキルは、各ページに主要コンテンツのmainランドマークが1つだけあるかを確認します。ページのレイアウトやテンプレートを作る開発者向けです。

使う場面

  • ✓ページにmain要素が2つ以上あるとき。
  • ✓テンプレートが誤って本文を2つ目のmain領域で囲んでいるとき。
  • ✓スクリーンリーダーの利用者が本文に直接移動できないとき。

スキルのリンク

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

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

使い方

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

貼り付け用メッセージ

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

AIへの頼み方の例

“私のページにmain領域がちょうど1つあるか確認してください。”

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

仕組み

エージェントは、main要素とmainロールを持つ要素を数えます。余分なmain領域は1つにまとめるか、余分なコンテナーからロールを外すよう提案します。

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

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

Use exactly one main landmark

A single main landmark allows keyboard and screen reader users to jump directly to the primary content of the page, bypassing repetitive navigation.

Quick Reference

  • Ensure each page has exactly one <main> element
  • Avoid multiple elements with role='main'
  • Provides a clear starting point for the page's primary content

Check

Count the number of <main> elements or elements with role='main' on the page to ensure there is exactly one.

Fix

Combine multiple main content areas into a single <main> element or remove the 'role=main' attribute from extra containers.

Explain

Explain how the main landmark acts as a primary navigation target for assistive technologies, and why multiple main areas cause confusion.

Code Review

Review the rendered markup and interactive states that affect Use exactly one main landmark. 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/landmark-one-main

よくある質問

mainランドマークは何をしますか?

支援技術に、ページの主要なコンテンツの明確な出発点を提供します。

main領域が複数あると何が問題ですか?

このスキルによると、ランドマークで移動する利用者を混乱させます。

結果はどのように確認できますか?

このスキルは、ブラウザーのアクセシビリティツールや支援技術の利用を勧めています。

詳細

作者による元の説明

Use when reviewing rendered HTML, interactive components, or design-system patterns related to Use exactly one main landmark. 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
ランキング
#2911
ライセンス
MIT
更新日
2026/10/31

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

0

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

コメント

  • …

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

似ているスキル