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.
# 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:
html5: Added many semantic tags, such as:
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
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!