Fixed the HTML output to meet specs not very well defined.