📜  HTML与XML

📅  最后修改于: 2020-12-25 04:36:42             🧑  作者: Mango

HTML与XML

HTML(超文本标记语言)和XML(可扩展标记语言)之间有很多区别。重要区别如下:

No. HTML XML
1) HTML is used to display data and focuses on how data looks. XML is a software and hardware independent tool used to transport and store data. It focuses on what data is.
2) HTML is a markup language itself. XML provides a framework to define markup languages.
3) HTML is not case sensitive. XML is case sensitive.
4) HTML is a presentation language. XML is neither a presentation language nor a programming language.
5) HTML has its own predefined tags. You can define tags according to your need.
6) In HTML, it is not necessary to use a closing tag. XML makes it mandatory to use a closing tag.
7) HTML is static because it is used to display data. XML is dynamic because it is used to transport data.
8) HTML does not preserve whitespaces. XML preserve whitespaces.