What is the difference between XML and XML and HTML

Source: Internet
Author: User

XML is designed to describe data, and its focus is on the content of the data.

HTML is designed to display data, and its focus is on the appearance of the data.

Basic knowledge to be mastered:
Before you continue your study, you need to have a basic understanding of the following knowledge:

Html/xhtml
JavaScript or VBScript
What is XML?
XML refers to Extensible Markup Language (extensible Markup Language)
XML is a markup language, very similar to HTML
XML is designed to describe data
XML tags are not predefined. You need to define the label yourself.
XML uses a file type declaration (DTD) or XML schema to describe the data.
XML with a DTD or XML schema is designed to be self-describing.
XML is a standard for the consortium
XML is a standard for the consortium
The Extensible Markup Language was established as the standard of the consortium on February 10, 1998.

The main differences between XML and HTML
XML is designed to carry data.

XML is not used in place of HTML.


XML and HTML are designed for different purposes:

XML is designed to describe data, and its focus is on the content of the data.

HTML is designed to display data, and its focus is on the appearance of the data.

HTML is designed to display information, and XML is designed to describe information.

XML without any behavior
XML is not the act.

Maybe it's a little hard to understand, but XML doesn't do anything. XML is designed to structure, store, and transmit information.

The following is a note written by Jani to Tove, stored as XML:


<note>
<to>Tove</to>
<from>Jani</from>
<body>don ' t forget me this weekend!</body>
</note> This tag has a title and a message. It also contains information about the sender and the recipient. However, this XML document still doesn't do anything. It's just pure information packaged in XML tags. We need to write software or programs to send, receive, and display this document.

XML is free and extensible
XML tags are not predefined. You must "invent" your own label.


Tags that are used to mark HTML documents and their structures are predefined. The creator of an HTML document can only use those tags that are defined in the HTML standard (such as <p>,


XML allows authors to define their own tags and their own document structure.

The label in the above example is not defined in any of the XML standards. These tags are created by the author of the XML document.


XML is a complement to HTML
XML is not an alternative to HTML.

It is important to understand that XML is not an alternative to HTML. In future web development, the most likely scenario is that XML will be used to describe the data, and HTML will be used to format and display the data.

Our best description of XML is that XML is a cross-platform, tool for transmitting information and independent of software and hardware.


The role that XML plays in future web development
XML will be ubiquitous.

When we see the progress of the development of XML standards by leaps and bounds, and a large number of software developers adopt the standard of the rapid pace of change, really can not help but sigh that this is really amazing.

We firmly believe that XML will play a role in the future of the web without hoe the HTML that has been the cornerstone of the Web, and that XML will become the most common tool for all data processing and data transfer.

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.