Technical
TechnicalInfo

Text-to-HTML Ratio

Checks the ratio of body text to HTML markup — thin/code-heavy pages flagged.

What this check measures

We divide the visible text length by the total HTML length. A ratio below 10% suggests the page is mostly markup with little actual content — low value for users and crawlers.

Why it matters

Low text-to-HTML ratio correlates with thin content, template-heavy pages, or overly complex markup. None of these rank well. A healthy content page has 15-25% ratio.

search

How our audit detects it

Strip tags, measure remaining text length vs. full HTML length. Compute ratio.

Typical findings

  • error_outlineRatio under 5% — SPA shell with no server-rendered content.
  • error_outlineRatio 8% — thin landing page with mostly hero markup.

How to fix

Usually means the page needs more content, simpler markup, or server-rendering. This metric is a symptom, not a root cause — find the underlying issue.

Frequently asked questions

Is high ratio always good?expand_more
No — 80% ratio with no formatting is hard to read. Healthy range: 15-25%.

Want this checked on your site?

Pantra runs the full audit (SEO, Security, GEO, Performance, Schema, Technical, Images) in 10 seconds and generates stack-specific fix prompts.

Scan my site

Related checks