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

How to install and deploy ftp image server in linux

Refer to the tutorial on setting up FTP server in...

What to do if you forget your mysql password

Solution to forgetting MySQL password: [root@loca...

Vue+js click arrow to switch pictures

This article example shares the specific code of ...

Analysis of the usage of Xmeter API interface testing tool

XMeter API provides a one-stop online interface t...

Detailed explanation of the fish school algorithm in CocosCreator game

Preface I recently wanted to learn CocosCreator, ...

Vue implements drag progress bar

This article example shares the specific code of ...

Introduction to generating Kubernetes certificates using OpenSSL

Kubernetes supports three types of authentication...

Page Speed ​​Optimization at a Glance

I believe that the Internet has become an increas...

The use and difference between vue3 watch and watchEffect

1.watch listener Introducing watch import { ref, ...

In-depth analysis of HTML semantics and its related front-end frameworks

About semantics Semantics is the study of the rel...

3 codes for automatic refresh of web pages

In fact, it is very simple to achieve this effect,...

WeChat Mini Program User Authorization Best Practices Guide

Preface When developing WeChat applets, you often...

Pure CSS to achieve hover image pop-out pop-up effect example code

Implementation principle The main graphics are co...

A brief discussion on VUE uni-app custom components

1. Parent components can pass data to child compo...