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.
| SNo. | 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 <b>, <br>, <img> 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. |
Leave a Reply