Difference: 1. XML is used to transmit and store data, focusing on the data; HTML is used to display data and focus on the appearance of the data. 2. XML is case-sensitive; HTML is not case-sensitive. 3. XML mandates the use of closing tags; HTML does not mandate the use of closing tags. 4. XML retains spaces; HTML does not retain spaces.
The operating environment of this tutorial: Windows 7 system, HTML5 version, Dell G3 computer.
What is xml?
xml is an extensible markup language used to describe data and store it in a form that can be easily retrieved and shared.
Characteristics of xml:
1. XML (Extensible Markup Language) is a markup language.
2. XML is designed to store and transmit data.
3. XML was created to provide self-describing data that is easy to use and store.
4. XML is not a substitute for HTML.
5. XML aims to achieve self-description.
6. XML is designed to transmit data, not display data.
7. XML tags are not predefined, so we must define our own tags before they can be used.
8. XML is platform independent and language independent.
The main advantages of xml:
You can use xml to get data from programs such as Microsoft SQL, convert it to XML, and then share this XML with other programs and platforms . We can communicate between two platforms that are often very difficult.
The difference between xml and html:
##1. XML is a software- and hardware-independent tool for transmitting and storing data; it focuses on data. HTML is used to display data and focus on the appearance of the data. 2. XML provides a framework for defining markup languages. HTML itself is a markup language. 3. XML is case-sensitive. HTML is not case sensitive. 4. XML is neither a tag markup language nor a programming language. HTML is a hypertext markup language. 5. We can define our own XML tags as needed. HTML has its own predefined tags that cannot be defined by users. 6. XML requires the use of closing tags. In HTML, there is no need to use closing tags. 7. XML is dynamic because it is used to transmit data. HTML is static because it is used to display data. 8. XML retains spaces. HTML does not preserve whitespace. For more programming related knowledge, please visit:
Programming Video! !
The above is the detailed content of What are the differences between xml and html. For more information, please follow other related articles on the PHP Chinese website!