XML is a language, but it is not a substitute language for HTML. HTML is just one of the types of language that can be used for describing a regular document, such as titles, different types of text, lists, figures, and pictures. The XML file is also designed specifically for self-describing.