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

w3c-compliant

できること

このスキルは、ウェブページのHTMLをW3C標準に照らして検証し、見つかったエラーを修正します。きれいで予測しやすいマークアップを求める開発者向けです。

使う場面

  • ✓閉じられていないタグや無効な入れ子のせいで、表示がおかしくなるかもしれないページがあるとき。
  • ✓リリースの前に、きれいなHTMLの検証レポートが必要なサイトのとき。
  • ✓テンプレートやコンポーネントが無効なマークアップを作り続けるとき。

スキルのリンク

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

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

使い方

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

貼り付け用メッセージ

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

AIへの頼み方の例

“私のページをHTMLのバリデーターに通し、報告されたエラーを修正してください。”

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

仕組み

エージェントは、ページやテンプレートをW3Cのバリデーターに通し、結果を読みます。表示の問題を起こしうるため、警告より先にエラーを修正します。

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

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

Validate HTML against W3C standards

Invalid HTML causes unpredictable rendering across browsers, breaks accessibility tools, and makes debugging significantly harder.

Quick Reference

  • Use validator.w3.org or browser extensions for validation
  • Fix errors first, then warnings (errors cause rendering issues)
  • Integrate validation into CI/CD with html-validate
  • Common issues: unclosed tags, invalid nesting, missing attributes

Check

Validate HTML markup using the W3C HTML Validator to identify and fix markup errors that could cause cross-browser compatibility issues.

Fix

Run HTML through W3C validator and fix reported errors including unclosed tags, missing attributes, and invalid nesting.

Explain

Explain why W3C HTML validation is important for cross-browser compatibility, accessibility, and maintainable code.

Code Review

Review templates, server-rendered HTML, and shared components that output markup related to Validate HTML against W3C standards. Flag exact elements, attributes, and routes where the rendered HTML violates the rule.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/html/w3c-compliant

よくある質問

なぜ警告より先にエラーを直すのですか?

このスキルによると、エラーは表示の問題を起こすことがあるため、警告より重要だからです。

検証は自動で実行できますか?

はい。このスキルは、CIにチェックを追加する方法としてhtml-validateに触れています。

よくあるHTMLのミスは何ですか?

閉じられていないタグ、無効な入れ子、属性の欠落が、よくある問題です。

詳細

作者による元の説明

Use when reviewing templates, rendered HTML, or shared components related to Validate HTML against W3C standards. Validate the final browser-facing markup, not just the source framework abstraction.

repo: thedaviddias/Front-End-Checklist

人気

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

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

0

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

コメント

  • …

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

似ているスキル