Home >>XML Tutorial >HTML vs XML
HTML (Hyper Text Markup Language) and XML (eXtensible Markup Language)
differ in many respects. The main differences are listed out below:
Sr No | HTML | XML |
---|---|---|
1. | HTML is used to display data and to focus on the look of the data. | XML is an integrated software and hardware application used for the data transmission and storage. It focuses on what defines data. |
2. | HTML itself is a markup language. | XML offers a basis for identifying languages for the markup. |
3. | HTML is not case sensitive. | XML is case sensitive. |
4. | HTML is a term used for presentation. | XML is not a language of presentation, nor of programming. |
5. | HTML comes with its own predefined tags. | You should describe the tags to suit your needs. |
6. | In HTML, the use of a closing tag is not necessary. | XML makes the use of a closing tag compulsory. |
7. | HTML is static, since the data is displayed. | XML is dynamic in that it is used for transmission of data. |
8. | HTML does not maintain whitespaces. | XML maintain white spaces. |