Elegant way of writing HTML