When developing web documents, we should always take a close look at the size of the resulting code. While it is very important to keep things minimised in terms of file size, sometimes it's not easy just applying the usual rules, tips and tricks.
But sometimes, following all those simple rules could be not enough.
In those cases I've found an online tool which might be used to compress and minimise our code: HTML compressor.
Despite the name, HTML compressor can minimise different code type:
2) x/html + ASP, PHP or Smarty;
4) CSS + ASP, PHP or Smarty;
There are plenty of options which give us a full control on the way the code is processed. And after the job is done, in order to evaluate the resulting file size, a compression ratio is shown.
In addition, when outputting the compressed code, the tool gives us eventual warnings or errors encountered during the process.
I believe that HTML compressor might be really handy in some situations. Please have a look at it, in case of need.