Corrected tag nesting to get valid-ish HTML