Home > Common Problem > body text

What are the differences between html and html5

百草
Release: 2023-06-14 09:43:03
Original
4471 people have browsed it

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">
Copy after login

The type declaration of HTML5 document is:

<!DOCTYPE html>
Copy after login

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:

html5: Added many semantic 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 Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template