Home  >  Article  >  What are the differences between html and html5

What are the differences between html and html5

百草
百草Original
2023-06-13 15:40:194452browse

The difference between HTML and HTML5: 1. HTML stands for Hypertext Markup Language. HTML5 is the fifth version of HTML. Many elements have been deleted or modified. 2. HTML does not have tags that reflect structural semantics. HTML5 adds Many semantic tags have been added; 3. HTML does not support audio and video if you do not use Flash player. HTML5 supports audio and video control; 4. HTML cannot handle inaccurate syntax, but HTML5 can handle inaccurate syntax.

What are the differences between html and html5

# Operating system for this tutorial: Windows 10 system, HTML5 version, Dell G3 computer.

1. What are HTML and HTML5?

HTML stands for Hypertext Markup Language and is used to design web pages using markup language. HTML is a combination of hypertext, which defines the links between web pages, and markup language, which is used to define text documents within markup that define the structure of a web page. This language is used to annotate (in computer annotation) text so that a machine can understand it and manipulate the text accordingly.

Most markup (such as HTML) languages ​​are human-readable. The language uses tags to define what operations must be performed on text. It is used to structure and render content on web pages.

HTML5 is the fifth version of HTML. Many elements have been deleted or modified in HTML5.

2. The difference between HTML and HTML5

1. Difference in document declaration

The type declaration of HTML document is:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

The type declaration of HTML5 document is:

<!DOCTYPE html>

Document declaration HTML5 is easy to write, streamlined, and conducive to programmers' rapid reading and development.

2. Differences in structural semantics

html: There are no tags that reflect structural semantics, such as: eb545d6e9e25f5c0174408f6286375ad16b28748ea4df4d9c2150843fecfba68

html5: Added many semantic tags, such as: 23c3de37f2f9ebcb477c4a90aac6fffd, 15221ee8cba27fc1d7a26c47a001eb9b, b97864c2e0ef2353a16c4d64c7734e92, af4e6c3c591431c4583becd75d1c3582...

Compared with HTML, HTML5 has new and Some elements have been modified.

3. Drawing differences

HTML: refers to scalable vector graphics, which is used to define vector-based graphics for the network.

HTML5: The canvas element of HTML5 uses scripts (usually using JavaScript) to draw images on the web page, and can control every pixel of the canvas.

4. Audio and video support

HTML does not support audio and video if you do not use Flash player. HTML5 uses the b97864c2e0ef2353a16c4d64c7734e92 and 39000f942b2545a5315c57fa3276f220 tags to support audio and video control.

5. Syntax processing

HTML cannot handle inaccurate syntax; HTML5 can handle inaccurate syntax.

The above is the detailed content of What are the differences between html and html5. 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