Implemented the HTML format output