Web based School

How XML differs from HTML?

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)
1 HTML focuses on how the data looks XML focuses on the data rather than how it looks
2 HTML is not a case sensitive language XML is case sensitive language
3 HTML is mainly concerned with the presentation of data XML is mainly used for storing and transporting the data
4 HTML is static XML is dynamic
5 In HTML the closing tag in optional In XML the closing tag is mandatory
6 HTML uses predefined tags such as ,
, etc. XML uses the user-defined tags that we create while writing the XML document.
7 HTML does not preserve white space. XML preserves white space.

Previous Next