The similarities and differences between "XML"--xml and HTML

Source: Internet
Author: User

Before learning XML, it was wrong to think of XML as an alternative to HTML, and after watching the video "xml Liu", it was found that

My help is still very big. Now it's time to correct the relationship between XML and HTML, and then say why the illusion is also helpful.


What is a markup language?


is a combination of text and other text-related information, showing the structure of the document and data processing details of the computer text encoding.

Additional text-related information, including the structure and presentation of text, is combined with the original text, but is identified with a tag.

The markup languages are:

In so many markup languages we are now in touch with HTML and XML, but comprehend by analogy, just learn the two markup languages and

Third, learning other languages is a lot easier.


HTML Features


As shown, HTML is a markup language for hypertext. "Hypertext" means that a page can contain images, links, or even sound

Music, programs and other non-text elements.

As a markup language, it cannot be displayed in the browser itself, it must be parsed and compiled by the browser in order to display HTML correctly

The content of the markup language.

Its labels are fixed, such as the <a> means that the link,its core role is the layout and display of information.


XML features


XML is similar to HTML, but it is designed to contain and transfer data.

It has the following characteristics:

1, there is a good format: in HTML, some non-end tags can be displayed in the browser normally, but in XML, the tag must be paired

appear, if missing one will be an error.

2, easy to learn and easy to use: If you have studied SGML, you will find XML streamlined SGML language, and then learning will be very easy. But if you don't learn

It will also help to learn about SGML after learning XML.

3, Extensibility: Unlike HTML tags are fixed, XML can be customized tags, which is very easy for developers to expand the XML file

Show.

4, Content and form separation: the content and performance of the data in HTML is mixed; But the XML data file is pure data,

You can provide data to HTML as a data source, and the display changes with the HTML.


Summarize


Finally say why the illusion will help me a lot of busy. Before learning XML, because of the first impression of XML,

Special attention is paid to the difference between HTML and XML. found that the original XML is not used to replace XML technology, they are not the same design ideas. As

Before we know a person, we may have a bad impression of him or her, but in the gradual understanding of the process to slowly change their first impression. Than

Such as: Don't look at the black, night can be invisible ~ (see Don't hit me ~)

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

The similarities and differences between "XML"--xml and HTML

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.