In current project, I was asked for compressing the HTML class attribute and corresponding CSS selectors before deployment. For example, the code on
For css there is YUI compressor. It will remove unnecessary white-space, and convert your properties to shorthand if you don't already use it. As for html I don't know any but remember that trimming white space in html is not always safe.