Hi all, Is there any freeware/GPL tools available to compact html which will reduce the file size drastically, which will save our bandwidth? Thanx Kanna
I don't think there is an actual way to "compact" your html other than by cleaning the code from improperly use of tags and by implementing the CSS techniques meant to "drastically" reduce the number of lines needed to reproduce the same output.
I agree with Clive. The best way to make the file size smaller is to take all of the element (unneeded tags) out of the code and put them into an external style sheet. Even better would be to completely remove the tables and use all css for the design using the div tags in place of tables. This makes the page smaller and quicker to load.
Hi, I think the best way of doing it is to use 'PHP include' if you have many pages with the same header, footer and just different content. It'd save you a lot trouble updating and also it won't make your coding so complicated. Space saving as well.
If you can't use PHP on your server, prehaps you may be better off with using server side includes. <!--#include virtual="path/to/header.html" --> It's been a long time since I used SSI's in the advent of PHP many years ago.. I think that's the right, but the idea is still the same.