Home > Web Front-end > H5 Tutorial > 10 major differences between HTML4 and HTML5 besides similarities_html5 tutorial tips

10 major differences between HTML4 and HTML5 besides similarities_html5 tutorial tips

WBOY
Release: 2016-05-16 15:50:47
Original
1338 people have browsed it

HTML5 is the latest HTML standard. Sooner or later, all web programmers will find that they need to use this latest standard. Moreover, many people will feel that it is more difficult to redevelop a website with HTML5 than to develop a website. Migrating from HTML4 to HTML5 is much easier because there are significant differences between the two versions.

In fact, HTML5 does not make any major changes to HTML4. Many of them are similar.
However, there are some important differences you need to know. Listed below are some of the main differences between HTML4 and HTML5 (not all, it is impossible to list them all):

1. The HTML5 standard is still being developed
This first difference is obvious, but so important that I need to start with it. Maybe you've noticed that there's a lot of talk about how cool HTML5 is, but the reality is that HTML5 is an unfinished standard. HTML4 is already 10 years old, but the fact that it is still the current official standard has not changed.
On the other hand, HTML5 is still in its early stages, and future modifications will continue to appear. You must take this into consideration, because the newly added or modified web elements you use on your website will change every year, and you need to constantly update and upgrade your website, which is not what you want. This is why, for now, you're better off using HTML4 in production and only using HTML5 in experiments.

2. Simplified syntax
Simpler doctype declaration is one of the many new features in HTML5. Now you just write and that's it. The syntax of HTML5 is compatible with HTML4 and XHTML1, but not SGML.

3. A new tag that replaces Flash
For Web users, Flash is both a surprise and a pain. There are many web developers who are dissatisfied with the threat HTML5 poses to Flash. But for those of you who put up with bloated Flash videos that took years to load and run, the technology to generate videos with the new tag has arrived.
Currently, the tag does not provide all the functions that Flash has, but over time, Flash will be eliminated from the web. We'll have to wait and see, because many people don't agree with this view yet.

4. New

and
tags
HTML5 is designed to better depict the anatomy of a website. That’s why new tags like these
and
have emerged, which are specifically designed to mark these parts of a website.
When developing a website, you no longer need to use
tags to mark these parts of the web page.

5. The new
and
tags
Similar to the
and
tags, the new < introduced in HTML5 The section> and
tags allow developers to better label these areas on the page.
Presumably, in addition to making the code more organized, it can also improve SEO results and make it easier for search engines to analyze your pages.

6. New and
tags
The new tag can be used as a normal menu or in a toolbar and right-click menus, although these things are not commonly used on pages.
Similarly, the new
tag is a more professional way to manage text and images on a page. Of course, you can use style sheets to control text and images, but it's more appropriate to use this tag built into HTML5.

7. New
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