10 major differences between HTML4 and HTML5

Source: Internet
Author: User

HTML5 I am afraid to make some web workers mad, HTML5 will adopt the standard XML syntax format, which is very high code requirements.

      HTML5 is the latest HTML standard. Although it is still in development. But sooner or later, all of the Web-app apes will find it necessary to use the to this latest than a Web site from html4 HTML5  easy more, this is due to the very big difference between the two version numbers. In fact, HTML5 does not have change, also

However, there are some very important differences need to know.

The following are some of the 10 key differences between HTML4 and HTML5:

1. The HTML5 standard is still in development
The first thing to note is that although the HTML5 is now very fire, but the HTML5 standards are still in the making, the standards are still changing.

HTML4 has been in the more than 10 years. There will be no change whatsoever. On the one hand, HTML5 is still in its early stages, and subsequent changes will continue to emerge. That's right up until now. It's best to use HTML4 in your product, just use HTML in your experiment.

2. Simplified Syntax
HTML5 simplifies a very small number of syntax. Like DOCTYPE's statement, you just need to write <!doctype html>. HTML5 is compatible with HTML5,XHTML1, but is incompatible with SGML.

3. <canvas> tag instead of Flash
Flash brings trouble to a lot of web developers. To play flash on a Web page requires a bunch of code and plugins.

<canvas> tags make it possible for developers to interact with the user UI with just one tag.

Although the <canvas> tag is not yet able to achieve the full functionality of Flash, but in time, Flash will be eliminated from the Web.



4. add
one of the principles of HTML5 design is to better reflect the semantics of the site, so add to understand the structure of the Web page.

5. add <section> and <article> tags
similar to the

6. add <menu> and <figure> tags
<menu> can be used to create a traditional menu. can also be used for toolbars and context menus. <figure> labels make the typography of Web pages and images more professional.

7. Add <audio> and <video> tags
These two tags are probably the most useful two labels in HTML5. Name implies. These two tags are used to play audio and video.

8. A new form
HTML5 has made a lot of changes to <form> and <forminput> tags. Added a lot of new properties and changed a lot of properties.

9. Remove <b> and <font> tags
This improvement is beyond my comprehension.

I don't think it's very helpful to remove these two tags for code improvements. The official explanation is that CSS should be used instead of the two tags. But I still think that for simple text, these two tags are very convenient.

10. Remove <frame>, <center>, <big> label

In fact, I can't remember when I used these tags before, so I don't feel sad about removing them.

For the same reason, there are better marks to achieve their function--which is very good, regardless of what obsolete marks are being removed from the standard is welcome.

Although the latest version of most popular browsers now supports HTML5, there are new (or altered) tags and attributes that are not supported, so your page may appear inconsistent on the user's screen. But I believe it can be used by all browsers in the near future.

Copyright notice: This article blog original articles, blogs, without consent, may not be reproduced.

10 major differences between HTML4 and HTML5

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.