From my experience, the most important things for HTML are:
use CSS, never hardcode styles
a correct template system: include dynamic content in a static layout, rather than include static content (e.g. header) in dynamic pages. Both TT and Mason supports this.