The main difference between XML and HTML syntax

xiaoxiao2021-03-06  69

1. XML is distinguishable letters, HTML does not distinguish.

2. In HTML, if the context clearly shows where the paragraph or the list key ends, you can omit the end tags such as or . In XML, the end tag is absolutely impossible to omit.

3. In XML, an element with a single tag without a matching end tag must be used as an end. This analyzer knows that you don't have to find the end tag.

4. In XML, the attribute value must be dispensed in the quotation mark. In HTML, quotation marks are available.

5. In HTML, you can have a property name that is not worth it. In XML, all attributes must have a corresponding value. In addition, the XML mark must follow the name rules below: 1. You can include letters, numbers, and other letters in the name; 2. The name cannot start with a number or "_" (underscore); 3. Name cannot be in letter XML (or XML or XML ..) begins; 4. The space cannot be included in the name.

转载请注明原文地址:https://www.9cbs.com/read-109633.html

New Post(0)