On-Page SEO

Code To Text Ratio

Shahid Maqbool

By Shahid Maqbool
On Jul 7, 2023

Code To Text Ratio

What is Code To Text Ratio?

The Code to Text Ratio shows the proportion of readable text versus HTML code on a web page.

Simply put, it measures the amount of text present in the content of a web page compared to the HTML code behind the structuring of the web page and displaying its content.

The other way around, it calculates the percentage of visible text from the total code that makes up the page. For instance, a higher percentage means more text for visitors to read relative to structural code, while a lower percentage indicates more code compared to actual text content.

Many SEOs believe that it is one of the many factors for evaluating website optimization. Higher text-to-code ratios may indicate a more content-focused site, which could be beneficial for search engine rankings.

However, one important thing to notice is that the most well-known search engines like Google have not confirmed that the text-to-code ratio directly affects where webpages rank in search results.

Google’s John Mueller has openly refuted this idea in this video.

Related Articles

Leave a reply
All Replies (0)