Get a way to write an HTML legend