XML is mostly used to store data,HTML and XHTML for creating websites, its a standard so every browser should understand it equally.HTML is a markup language used for displaying text and documents across different platforms and machines.It was originally intended for a very specific audience,and has expanded to include hypertext, multimedia, as well as the style of the documents displayed.