Question: why xhtml is better than html?
Answer: Based on the XML syntax rules, where every opened tag must be closed, XHTML is easier to code and to maintain, since the structure is more apparent and mismatching tags are easier to spot. XHTML 1.0 is the reformulation of HTML 4.01 in XML. Therefore, XHTML documents are hypertext documents and XML documents.