The difference between XML and HTML and the relation of "one"

Source: Internet
Author: User
Tags cdata file url
Xml:extensible Markup Language (Extensible Markup Language) Html:hypertext Markup Language (Hypertext Markup Language) both were developed by the World Wide Web Consortium, HTML focuses on how to display data on a Web page, and XML focuses on the transmission and storage of data, both of which are an integral part of the web domain; Relative to Html,xml has its own strict syntax specifications, strictly case-sensitive, and support developers to customize the label, and can be linked to the DTD file or schema file to customize its syntax format, is easy to watch, and facilitates the same or different languages written by the data transfer between programs. The structure of XML is simple, a root element, a number of child elements, each element can define its corresponding attributes, the XML document supports comments, the annotation format is the same as the HTML, in order to avoid the special characters are wrong parsing, the XML specifies a CDATA area to describe the text that you do not want to parse, in the format <! [cdata[]]>, like HTML, XML uses & As an escape character, such as:&amp; = = ' & ' &lt; = = ' < ' &gt; = = ' > ' &quot; = = ' &ap the os; = = ' XML associates a constrained DTD file with a fixed-format statement <! DOCTYPE Document root node SYSTEM "DTD file URL" > local file <! DOCTYPE Document root node Public "DTD name" "DTD file URL" > common file

The difference between XML and HTML and the relation of "one"

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.