Home > Web Front-end > H5 Tutorial > body text

Detailed explanation of the difference between H5 and HTML4

Y2J
Release: 2017-05-23 13:53:52
Original
3242 people have browsed it

Although HTML5 does not completely subvert HTML4, they also have some differences. This article has compiled some visible differences. Just master some first. It is not too late to study them in detail after all are supported. Interested friends should not miss it.

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 followsset="UTF-8">

2. <canvas> ;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 NewMany tags
One principle of HTML5 design is to better reflect the semantics of the website, so

and < Tags like ;footer> are used to clearly indicate the structure of the web page; the new
and
tags,
and
are also helpful to clarify the structure of the web page and are more beneficial to SEO ; Added and
tags, can be used to create traditional menus, as well as toolbars and context menus. The
tag makes the layout of web text and images more professional; the new
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!