first, what is HTML
come here with a question, a word:HTML (Hypertextmark-uplanguage) is the Hypertext Markup Language, is the WWW description language. If you want to learn more, please see the following blog:
http://blog.csdn.net/liu_yujie2011com/article/details/18656125
ii. What is XML
XML, Extentsiblemarkup Language (Extensible Markup Language), is a meta-language used to define other languages, formerly SGML (Standard Universal Markup Language). It has no tag set (Tagset) and no grammatical rules (grammatical rule), but it has syntactic rules (syntax rule). Any XML document must be well-constructed for any type of application and correct parsing (well-formed), that is, each open tag must have a matching end tag, not a reversed-order label, and should conform to the requirements of the specification in the statement composition. An XML document can be valid (valid), but it is not necessarily a valid requirement. A valid document is a document that conforms to its document type definition (DTD). If a document conforms to a schema, then the document is schema-valid (schema valid).
three, The difference between HTML and XML
With the above knowledge of HTML and XML , let's see what the difference between them is and how they relate to each Other.
both XML and HTML are used to manipulate data or structures, which are roughly the same in structure, but there are obvious differences in their nature. A summary of the various information on the integrated Web is summarized below.
(a), the grammatical requirements are different:
1. htmlxml strict distinction.
2. html sometimes not strict, if the context clearly shows where the paragraph or list key ends, then you can omit </p> or </li>< Span style= "font-family: Song body; End tag like Background:white ">. In xml
3. xml/ character as end. This way the parser knows not to look for the end tag.
4. in xmlhtml
5. in htmlxml
6. in the XML document, the blank part is not automatically deleted by the parser, but the HTML filters out the space.
(b), the mark is different:
1. HTML uses intrinsic markup, while XML has no intrinsic markup.
2. Html tags are predefined;XML tags are free, customizable, and extensible.
(iii), different functions:
1. htmlxmlhtml combine data and display to display this data in the page; xml
Separates the data from the display. XML is designed to describe data, and its focus is on the content of the data. HTML is designed to display data with the focus on the appearance of the data.
2. xmlNoHtmlof alternatives,XmlAndHtmlis a language of two different uses.XmlNot to replaceHtml; in factXmlcan be seen as html xml and html html The design goal is to display the data and focus on the appearance of the data, while Xml
3. xmlhtml similar, xml < Span style= "font-family: Song body; Background:white "> No action is made. (common denominator)
4. The best description for XML might be that XML is a cross-platform, software-independent tool that processes and transmits information.
5. XML will be ubiquitous in the future. XML will become the most common tool for data processing and data transmission.
The difference between XML and HTML