Rearranging and fixing HTML errors.