Main differences between XML and HTML

Source: Internet
Author: User

XML and HTML are used differently.
XML is a supplement to HTML. It is very important to understand that XML is not a substitute for HTML.
In the future, it is most likely that website developers will use XML to describe the data required for the website and the website structure. html will be used to format and display the data. html is the foundation of a website, XML becomes an important feature of website development. It may trigger the processing and transmission of all data.

XML is designed to describe data and focus and data.
HTML is designed to display data and focus and data.

XML is a language for data.
HTML is about how to display information, and XML is about how to describe information.

XML is scalable
All the tags (TAGS) and document structures in HTML are pre-defined. We only have the right to use standard HTML tags. XML allows us to customize our own logo and their own document structure.

XML can be used to separate your data. Your html
HTML pages are used to display data. Therefore, data is generally stored in the HTML page.
The XML data can be saved to a separate XML file.
This method allows you to use HTML to format and display data in a centralized manner,
Make sure that you do not need to modify the HTML code any time you modify the data.

XML can also be used to store data in HTML documents.
XML data can also be stored in HTML pages as "Data Islands.
In this way, you can still use HTML to format and display data.

XML can be used as a format for exchanging information.
In the real world, the data formats stored in computer systems and databases are incompatible.
In many cases, developers are faced with the problem of how to exchange the data over the Internet.
Converting the data into XML can greatly reduce the complexity of this job.

XML can be used to save data to a file or database.
The application can be used to read, write, and display the data information.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.