use-valid-heading-hierarchy
Installation
SKILL.md
Summary
Use HTML heading tags (<h1> - <h6>) to create a logical outline of the page content. Do not choose headings based on font size; choose them based on structure.
Rationale
- Accessibility: Screen reader users navigate by headings. Skipping levels (e.g.,
h2toh4) creates confusion. - SEO: Search engines use headings to understand the main topics of the page.
- Consistency: Enforces a consistent document structure.
Guidance
- One H1: Each page should have exactly one
<h1>representing the main title. - Sequential: Do not skip levels. An
<h3>must follow an<h2>(or another<h3>). - No Styling: Do not use
<h5>just because you want "small bold text". Use CSS for styling.