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

CheckStatusRule
No headings at all FAILEvery page must have at least one heading
No <h1> tag FAILEvery page must have exactly one <h1>
Multiple <h1> tags WARNRecommend a single <h1> per page
Hierarchy skipped (e.g. H2 → H4) WARNHeadings should follow sequential order
Empty heading (no text content) FAILAll headings must have descriptive text
Keyword density < 1.0% WARNKeyword density is low
Keyword density > 3.0% FAILKeyword stuffing detected
Internal link count < 3 WARNMinimum 3 internal links per page

Industry Thresholds

Keyword density (ideal)
1.0–3.0%
Internal links (min)
3 per page
H1 tags
Exactly 1

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