Now we will move into more technical terms related to placement of content. Everyone knows what we mean by ratio, it is comparison of one element to another. When we discuss code-to-content ratio, it is the amount of code with respect to the actual viewable amount of content on the webpage.
When we code our webpage, always try to give the search spider/crawler the shortest route to our textual content wherever possible.We should always try to maintain low code-to-content ratio, the reason behind it is that most of the times, the SE crawlers do not crawl the whole page, it generally reads not more than 100 KB of the page.
In the following topic we will discuss various method to lower the code-to-content ratio.
How to maintain code-to-content ratio?
CSS i.e. Cascading Style Sheets are very popular for improving the looks and adding effects for the webpage. There are three ways we can include CSS and use for the webpage viz, inline css, embedded css and external css. For reducing the code-to-content ratio, external CSS is the best option. External CSS is basically creating a “.css” file and then calling the file from the webpage. CSS is the perfect means of reducing code-to-content ratio, lowering HTML file size and compromising between clean visual design and clean code of spiders.