Making the HTML minimal but it can't be done automatically. It takes some HTML knowledge and most important a few thousand lines of code written to make it optimized if not minified. What I want to say is that trough time you learn how to write code in a way that it as optimized as it can be. At least I did. For example I never write table structure hierachically but I always leave the <table> on top and then group together the <tr><td></td></tr> and then each table cell in a new row. This way I still locate the start of a new row so it makes the table structure human readable and a bit optimized. There are a lot of these kind of tricks I use that I learned over time.