XML and HTML look parallel. Both are used tags and attributes (such as align=”left” or type=”personal”) to add information to the content. In fact, a carefully prepared HTML document can double as an XML document. The difference is that HTML is a well-defined set of elements and attributes.
On the other hand, HTML has somewhat looser rules than XML, so some HTML documents are not well-formed XML documents.