Simon Willison’s Weblog


Content to code ratio

8th November 2002

Adrian Holovaty has been investigating the content-to-code ratio of various news sites compared to various blogs. Unsurprisingly the blogs win hands down due to the tendancy to use CSS to separate structure from presentation. Adrian has put together a PHP script to calculate the ratio which can be accessed online or downloaded for personal use. Incidentally, from the comments in the code I learnt that PHP’s strip_tags() function neglects to strip the --> at the end of an HTML comment.

This is Content to code ratio by Simon Willison, posted on 8th November 2002.

Next: Object persistence

Previous: URLs matter

Previously hosted at