HTML and XML: both of them are markup languages (ML), one is the hypertext labeling language, and the other is the extensible banner. The difference between them:
1) Extensibility: HTML is not extensible, and XML is the original markup language that can be used to define new markup languages.
2) Focus: HTML focuses on how to represent information, while XML is focused on how structured the descriptive information is.
3) syntax requirements: HTML does not require the nesting of tags, pairing, etc., do not require a certain order between the tags, and XML is strict requirements of nesting, pairing, following the DTD tree structure.
4) Readability and maintainability: HTML is difficult to read and maintain, while XML structure is clear and easy to read and maintain
5) Data and display relationships: HTML content description and display integration is unique, while XML is phase-separated
The last point is their editing tools, HTML has a bunch of editing tools, and XML is not yet mature.
As for XHTML, it is a standard between HTML and XML, which is a requirement for HTML to conform to the XML syntax specification. However, the current browser support for XHTML is not very good.
The difference between HTML and XHTML:
1) XHTML comparison and html,xhtml documents have a good and complete layout, reflected in two aspects: A, the element must have an end tag; b, the element must be nested;
2) for HTML elements and attributes, XHTML must be lowercase, because XML is strictly case-sensitive,
- And
- is a different label;
3) XHTML attribute values must be in quotation marks;
4) XHTML does not support attribute minimization, what is attribute minimization?
Correct: Non-minimized attribute (unminimized attributes)
Incorrect: Minimize attribute (minimized attributes)
5) in XHTML, the name attribute is deprecated and will be removed in a later release.
Besides, why does the Web page encoding evolve from HTML XHTML? xml?
The early-morning page is written in HTML, but it has three serious drawbacks:
1) coding is not standard, the structure is messy and bloated, need intelligent terminal to be very good display;
2) Performance and structural confusion, not conducive to development and maintenance;
3) can not use more network equipment, such as mobile phones, PDA, etc.;
So HTML needs development to solve this problem, so the xhtml,xhtml is a bridge to HTML over XML. and XML is the trend of web development.
The connections and differences between HTML, XHTML, and XML