Home >Web Front-end >HTML Tutorial >What is the difference between html and xhtml and xml

What is the difference between html and xhtml and xml

php中世界最好的语言
php中世界最好的语言Original
2018-02-07 09:21:393080browse

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/>,


(horizontal dividing line)

xml:

html will eventually develop into xml. xhtml is a transition between html and xml. The characteristics of xhtml Also suitable for xml;


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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn