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 > Internet Technology >
Share
Shulou(Shulou.com)05/31 Report--
Most people do not understand the knowledge points of this article "what types of files xml and html are respectively", so the editor summarizes the following contents, detailed contents, clear steps, and certain reference value. I hope you can get something after reading this article. Let's take a look at this article, "what types of files are xml and html respectively?"
XML is an extensible markup language, which is used to mark electronic documents with structural markup language, and can be used to mark data and define data types. Html is a hypertext markup language, an application under the standard general markup language, it is not a programming language, but a markup language, which is necessary for web page production.
The operating environment of this tutorial: windows7 system, CSS3&&HTML5 version, Dell G3 computer.
Xml is an extensible markup language and html is a hypertext markup language; tag names and attribute names in xml can be picked up at will, but the tag signatures in html are prescribed and the format is also prescribed.
Extensible markup language (XML) provides a way to describe structured data. Unlike HTML tags, which are mainly used to control the display and appearance of data, XML tags are used to define the structure and data type of the data itself.
XML uses a set of tags to depict data elements. Each element encapsulates data that can be very simple or complex. You can define an unlimited set of XML tags. For example, you can define some XML tags to declare the data in the order, such as price, tax, shipping address, billing address, and so on. Because XML tags are used throughout and across units, data from a variety of different datastores will be easier to exchange and manipulate.
XML is a simple, platform-independent and widely adopted standard. The advantage of XML over HTML is that it separates the user interface from structured data. This separation of data from display makes it possible to integrate data from different sources. Customer information, orders, research results, bill payments, medical records, catalog data, and other information can be converted to XML.
The full name of HTML is Hypertext markup language, which is a markup language. It includes a series of tags. Through these tags, the document format on the network can be unified, so that the scattered Internet resources are connected into a logical whole. HTML text is a descriptive text composed of HTML commands. HTML commands can describe text, graphics, animation, sound, tables, links, and so on.
Hypertext is a way to organize information, which associates the text and charts with other information media through the method of hyperlink. These interrelated information media may be in the same text, other files, or files on a computer that is geographically distant. This way of organizing information connects the information resources distributed in different locations in a random way, which provides convenience for people to find and retrieve information.
Extended data:
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, while xml separates data from 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.
The above is about the content of this article on "what types of documents xml and html are respectively". I believe we all have a certain understanding. I hope the content shared by the editor will be helpful to you. If you want to know more about the relevant knowledge, please follow 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.