This time I will bring you what is the difference between html and xhtml and xml, what are the precautions about the difference between html, xhtml and xml, the following is a practical case, let’s take a look one time.
Development Trend:
html (Hypertext Markup Language) - xhtml (Extensible Hypertext Markup Language) - xml (Extensible Markup Language);
html:
1. Insensitive to case;
2. Tags do not have to appear in pairs;
3.
;
xhtml:
1. It is case-sensitive and must be lowercase;
2. Tags must appear in pairs, and if there is a start tag, there must be an end tag;
3 .Attribute value must be within quotation marks;
4. Attribute minimization is not supported:
eg: Correct:
Error:
5. The name attribute is deprecated and will be eliminated in the future;
6. Empty elements must also end with tags: such as: < br/>,
I believe you have mastered the method after reading these cases. For more exciting information, please pay attention to other related articles on the php Chinese website!
Related reading:
How to operate the child page of iframe to shield the page pop-up layer effect of the parent page
What about the picture of html Use base64 encoding instead of
The above is the detailed content of What is the difference between html and xhtml and xml. For more information, please follow other related articles on the PHP Chinese website!