HTML markup correction