Home >Web Front-end >H5 Tutorial >Compilation of the differences between HTML5 and previous HTML4_html5 tutorial skills

Compilation of the differences between HTML5 and previous HTML4_html5 tutorial skills

WBOY
WBOYOriginal
2016-05-16 15:48:491500browse

HTML5 is the next version of the HTML standard. Although HTML5 does not completely subvert HTML4, there are some differences. For the latest and most complete HTML5-HTML4 comparison information, please see http://dev.w3.org/html5/html4-differences/, which seems to be slightly more. In this world where IE still exists, it is enough to understand some of the differences of HTML5 first, and it will not be too late to study it in detail after it is fully supported.

1. Simplified syntax
HTML5 simplifies many subtle syntax, such as doctype declaration, you only need to write . HTML 5 specifies UTF-8 encoding as follows

2. tag replaces Flash
Flash has caused trouble for many web developers. Playing Flash on a web page requires a bunch of code and plug-ins. The tag allows developers to interact with users through UI using only one tag.

3 Added many new tags
One principle of HTML5 design is to better reflect the semantics of the website, so tags such as

and
are added to Clearly express the structure of the web page; add
and
tags,
and
are also helpful to clarify the structure of the web page, which is more conducive to SEO; add and < The ;figure> tag, can be used to create traditional menus, as well as toolbars and context menus. The
tag makes the layout of text and pictures on web pages more professional; the new
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