On-Page Optimization
Content & Structure
Validates heading hierarchy, keyword density and placement, and internal/external link structure for any HTML page.
Key Checks
H1 tag validation
Heading hierarchy (H1–H6)
Keyword density analysis
Keyword placement checks
Internal link count
Link anchor text quality
Audit Checks
| Check | Status | Rule |
|---|---|---|
| No headings at all | FAIL | Every page must have at least one heading |
| No <h1> tag | FAIL | Every page must have exactly one <h1> |
| Multiple <h1> tags | WARN | Recommend a single <h1> per page |
| Hierarchy skipped (e.g. H2 → H4) | WARN | Headings should follow sequential order |
| Empty heading (no text content) | FAIL | All headings must have descriptive text |
| Keyword density < 1.0% | WARN | Keyword density is low |
| Keyword density > 3.0% | FAIL | Keyword stuffing detected |
| Internal link count < 3 | WARN | Minimum 3 internal links per page |
Industry Thresholds
Keyword density (ideal)
1.0–3.0%
Internal links (min)
3 per page
H1 tags
Exactly 1
Related Skills
Edge Cases
- If no keyword is supplied, skip keyword analysis
- Keyword matching is case-insensitive
- Ignore javascript:, mailto:, and tel: hrefs for link classification
- Next.js <Link> components render as standard <a> tags in HTML output
Try These Prompts
Copy any prompt below and paste it into your AI coding agent to run On-Page Optimization checks:
“Audit the heading hierarchy on this page — do I have a single H1 and correct H2→H3 order?”
“Check keyword density for 'nextjs seo' — is it between 1% and 3%?”
“Is my target keyword placed in the title, H1, meta description, and first paragraph?”
“How many internal links does this page have? Are there at least 3?”
“Find any links with empty anchor text on this page”