The difference between html, xhtml and xml

The difference between html, xhtml and xml
Development Trends:

html (Hypertext Markup Language) - xhtml (Extensible Hypertext Markup Language) - xml (Extensible Markup Language);

html:

1. Not case sensitive;

2. Tags do not have to appear in pairs;

3.<br>;

xhtml:

1. Case sensitive, must be lowercase;

2. Tags must appear in pairs. If there is a start tag, there must be an end tag.

3. The attribute value must be within quotation marks;

4. Attribute minimization is not supported:

Eg: Correct: <input checked='checked'>

Error: <input checked>

5. The name attribute is not recommended for use and will be eliminated in the future;

6. Empty elements also need end tags: such as: <br/>, <hr/> (horizontal dividing line)

xml:

HTML will eventually develop into XML. XHTML is a transition from HTML to XML, and the characteristics of XHTML are also suitable for XML.

<<:  Define your own ajax function using JavaScript

>>:  The latest 36 high-quality free English fonts shared

Recommend

Example of implementing skeleton screen with Vue

Table of contents Skeleton screen use Vue archite...

How to use MySQL stress testing tools

1. MySQL's own stress testing tool - Mysqlsla...

Solution to Vue data assignment problem

Let me summarize a problem that I have encountere...

Detailed explanation on how to get the IP address of a docker container

1. After entering the container cat /etc/hosts It...

Differences in the hr separator between browsers

When making a web page, you sometimes use a dividi...

Detailed explanation of MySQL EXPLAIN output columns

1. Introduction The EXPLAIN statement provides in...

Detailed description of HTML table border control

Only show the top border <table frame=above>...