In the previous tutorial of XML introduction, we discussed the differences between HTML and XML in brief. In this guide, we will discuss them in detail.
|HTML(Hyper Text Markup Language)
|XML(eXtensible Markup Language)
|HTML focuses on how the data looks
|XML focuses on the data rather than how it looks
|HTML is not a case sensitive language
|XML is case sensitive language
|HTML is mainly concerned with the presentation of data
|XML is mainly used for storing and transporting the data
|HTML is static
|XML is dynamic
|In HTML the closing tag in optional
|In XML the closing tag is mandatory
|HTML uses predefined tags such as <b>, <br>, <img> etc.
|XML uses the user-defined tags that we create while writing the XML document.
|HTML does not preserve white space.
|XML preserves white space.