Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Html, is that xml?

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)05/31 Report--

This article introduces the knowledge of "is html xml?". In the operation of actual cases, many people will encounter such a dilemma. Then let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Html is not xml. HTML refers to Hypertext markup language, which is the description language of WWW, while XML refers to Extensible markup language, which is a meta-language used to define other languages. Case is not case sensitive in html, but is strictly case sensitive in xml.

The operating environment of this tutorial: windows7 system, HTML5 version, Dell G3 computer.

Html is not xml.

HTML (HyperTextMark-upLanguage), the hypertext markup language, is the description language of WWW.

XML, or ExtentsibleMarkup Language (Extensible markup language), is a meta-language used to define other languages, and its predecessor is SGML (Standard Universal markup language). It doesn't have a label set (tagset) or syntax rules (grammatical rule), but it has a syntax rule. Any XML document for any type of application and correct parsing must be well-formed, that is, every open tag must have a matching closing tag, must not contain the reverse order of the tag, and the sentence structure should meet the requirements of the technical specification. XML documents can be valid (valid), but they are not necessarily required to be valid. A valid document is a document that conforms to its document type definition (DTD). If a document conforms to the rules of a schema, then the document is schema valid.

The difference between HTML and XML

Through the above understanding of HTML and XML, let's take a look at the differences and connections between them.

Both xml and html are used to manipulate data or data structures, and they are roughly the same in structure, but they are obviously different in nature. All kinds of information on the Internet are summarized as follows.

(1) different grammatical requirements:

1. Case-insensitive in html, strict distinction in xml.

two。 In HTML, sometimes lax, if the context clearly shows where the paragraph or list key ends, you can omit

Or something like an end mark. In XML, it is a strict tree structure, and the closing tag must not be omitted.

3. In XML, elements that have a single tag without a matching closing tag must end with a / character. In this way, the parser knows that there is no need to look for the closing tag.

4. In XML, attribute values must be enclosed in quotation marks. In HTML, quotation marks are available but not used.

5. In HTML, you can have a property name without a value. In XML, all attributes must have corresponding values.

6. In XML documents, white space is not automatically deleted by the parser; however, html filters out spaces.

(2) the marks are different:

1. Html uses inherent tags; xml has no inherent tags.

2. Html tags are predefined; XML tags are free, custom, and extensible.

(3) different functions:

1. Html is used to display data; xml is used to describe and store data, so it can be used as a persistence medium! Html combines data with display to display the data on the page; xml

The data is separated 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, focusing on the appearance of the data.

2. Xml is not a substitute for HTML. Xml and html are two languages for different purposes. XML is not meant to replace HTML;. In fact, XML can be seen as a supplement to HTML. The goals of XML and HTML are different. The design goal of HTML is to display data and focus on the appearance of the data, while the design goal of XML is to describe the data and focus on its content.

3. XML without any behavior. Like HTML, XML does nothing. (common ground)

4. The best description for XML may be: XML is a cross-platform, software-and hardware-independent tool for processing and transmitting information.

5. XML will be everywhere in the future. XML will become the most common tool for data processing and data transmission.

This is the end of the content of "is html xml?". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report