Heading Rules
Heading Rules
Rules for validating heading structure and SEO.
heading-hierarchy
Validates proper H1-H6 heading structure.
Checks
- Page has exactly one H1
- Headings don't skip levels (H1 → H3)
- H1 comes first
Examples
Pass:
Fail (no H1):
Fail (multiple H1):
Fail (skipped level):
Configuration
empty-heading
Detects empty heading elements.
Checks
- Headings have visible text content
- Not just whitespace
- Not just invisible elements
Examples
Fail:
Pass:
Configuration
heading-keywords
Checks H1 contains relevant keywords from page title.
Checks
- H1 shares words with page title (30%+ overlap)
- Primary keywords appear in H1
Examples
Pass:
Warning:
Why It Matters
Search engines expect the H1 to reflect the page's main topic, which should align with the title tag.
Configuration
Best Practices
Heading Structure
H1 Guidelines
| Do | Don't |
|---|---|
| One H1 per page | Multiple H1s |
| Match page topic | Generic "Welcome" |
| Include keywords | Keyword stuffing |
| Descriptive | Too vague |
Heading Checklist
- Single H1 that describes page content
- H1 contains primary keyword
- No skipped heading levels
- No empty headings
- Headings create clear outline