Feed Sign in with OpenID OpenID

Simon Willison’s Weblog

Content to code ratio

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.

View blog reactions

Next: Object persistence

Previous: URLs matter

0 comments

No comments.

Comments are closed.

Previously hosted at http://simon.incutio.com/archive/2002/11/08/contentToCodeRatio

A django site