In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the difference between HTML and XML is what the relevant knowledge, detailed and easy to understand, simple and fast operation, has a certain reference value, I believe that everyone will read this HTML and XML difference is what the article will gain, let's take a look at it.
HTML is called Hypertext Markup Language.
XML is an extensible markup language; it has no tag set and no grammatical rules, but it has syntax rules. Any XML document must be well-formed for any type of application and correct parsing, that is, every open tag must have a matching closing tag, must not contain tags out of order, and should conform to technical specifications in sentence formation. XML documents can be valid, but they do not have to be valid. A valid document is one that conforms to its Document Type Definition (DTD). A document is schema valid if it conforms to the specifications of a schema.
Difference between HTML and XML:
Xml and html are both used to manipulate data or data structures, and are roughly the same in structure, but they are significantly different in nature. A summary of the information available on the Consolidated Web site is as follows
(a) Different grammar requirements
1. Case-insensitive in html, strictly sensitive in xml.
2. In HTML, sometimes loosely, if the context clearly shows where the paragraph or list key ends, then you can omit
Or something like that. In XML, it is a strict tree structure, and the closing tag must not be omitted.
3. In XML, elements with a single tag and no matching closing tag must end with a/character. This way the parser knows not to look for end markers.
4. In XML, attribute values must be enclosed in quotation marks. In HTML, quotation marks are optional.
5. In HTML, you can have attribute names without values. In XML, all attributes must have corresponding values.
6. In XML documents, white space is not automatically removed by the parser; html, however, filters out white space.
(b) Different markings
HTML uses native tags; XML has no native tags.
Html tags are predefined;XML tags are free, custom, and extensible.
3) Different roles
1.html is used to display data;xml is used to describe data and store data, so it can be used as a persistent medium! Html combines data and display, displaying this data in the page;xml
the data and display are separated. XML is designed to describe data, with the focus on the content of the data. HTML is designed to display data, with the focus on how the data looks.
Xml is not a substitute for HTML, xml and HTML are two languages for different purposes. XML is not intended to replace HTML; in fact, XML can be viewed as a complement to HTML. The goals of XML and HTML differ. HTML is designed to display data and focus on its appearance, while XML is designed to describe data and focus on its content.
3. XML without any behavior. Like HTML, XML does nothing. (Common ground)
4. XML is probably best described as a cross-platform, hardware-and software-independent tool for processing and transferring information.
XML will be ubiquitous in the future. XML will become the most popular tool for data processing and data transmission.
About "HTML and XML difference is what" the content of this article is introduced here, thank you for reading! I believe everyone has a certain understanding of "what is the difference between HTML and XML" knowledge. If you still want to learn more knowledge, please pay attention to the industry information channel.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.