fixing html syntax errors