Generates HTML structure for templating