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

Let's talk about the difference between containers and images in Docker

What is a mirror? An image can be seen as a file ...

Complete MySQL Learning Notes

Table of contents MyISAM and InnoDB Reasons for p...

JavaScript+html to implement front-end page sliding verification

This article shares the specific code of JavaScri...

Vue Element-ui form validation rule implementation

Table of contents 1. Introduction 2. Entry mode o...

How to install pyenv under Linux

Prerequisites Need to install git Installation St...

JQuery implements hiding and displaying animation effects

This article shares the specific code of JQuery t...

A thorough analysis of HTML special characters

A Thorough Analysis of HTML (14) Special Characte...

Use href in html to pop up a file download dialog box when clicking a link

I learned a new trick today. I didn’t know it befo...

Solution to the failure of docker windows10 shared directory mounting

cause When executing the docker script, an error ...

Vue uses Canvas to generate random sized and non-overlapping circles

Table of contents Canvas related documents Effect...

HTML input file control limits the type of uploaded files

Add an input file HTML control to the web page: &...

About installing python3.8 image in docker

Docker Hub official website 1. Search for Python ...

10 tips for designing useful, easy-to-use web applications

Here are 10 tips on how to design better-usable w...

HTML table markup tutorial (6): dark border color attribute BORDERCOLORDARK

In a table, you can define the color of the lower...