The Code to Text Ratio calculates the percentage of actual text in a web page. Content ratio tool extracts the text from paragraphs and the anchor text from HTML code and calculates the Code to Text Ratio based on this information.
Why Code to Text Ratio Important for SEO?
Code to text ratio is used by search engines to check the relevancy of a web page. Higher Code to Text Ratio is good for ranking purpose.
An Example to calculate code to text ratio percentage of a web page is given below:
Web Page Size :
17481 Bytes = 17 KB
Code Size :
13692 Bytes = 13 KB
Text Size :
3789 Bytes = 4 KB
Code to Text Ratio = Text Size/Web Page Size*100
Code to Text Ratio = 3789/17481*100 = 21.67%