How is HTML different from XHTML?

Both HTML and XHTML are often used to create web pages. HTML, on the other hand, is derived from SGML tagging, whereas XHTML is an Extensible Markup Language application (XML).

The element tag pair (start tag and end tag), attributes of the element within the tag, and content in the form of both text and graphics are the three components of HTML. XHTML, on the other hand, has only one root element that contains lower case elements and requires the value to be closed, nested, and enclosed by quotation marks. When comparing the two, it’s clear that XHTML is more expressive than HTML.