Home > Web Front-end > HTML Tutorial > What are the differences between html5 and html?

What are the differences between html5 and html?

coldplay.xixi
Release: 2021-04-27 16:17:23
Original
5108 people have browsed it

The difference between html5 and html: 1. HTML has a long code in the document declaration, while html5 only has a simple declaration; 2. Compared with html, HTML5 has powerful new functions. Such as powerful drawing functions.

What are the differences between html5 and html?

The operating environment of this tutorial: windows7 system, html5 version, DELL G3 computer.

The difference between html5 and html:

1. In the document type declaration

In the document declaration, html has a long code, And it is difficult to remember this code, but html5 is different. There are only simple declarations, which is also easier for people to remember and is more streamlined. For example:

html:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
<html xmlns="http://www.w3.org/1999/xhtml">
Copy after login

html5:

<!DOCTYPE html>
Copy after login

2. In terms of structural semantics

html4.0: There is no tag that reflects structural semantics. We usually name it like this :

;

html5: It has great advantages in semantics. Provides some new html5 tags, such as:

,
Related labels:
source:php.cn
Statement of this Website
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template