The text to code ratio is the percentage of text a certain webpage has. The code refers to the web page HTML code.