10 key differences between HTML4 and html5. html4html5
HTML5 is the next version of the HTML standard. More and more programmers are starting to use HTML5 to build websites. If you use both HTML4 and HTML5, you will find it much easier to migrate from HTML4 to html5. Although HTML5 does not completely subvert HTML4, there are many similarities between them, but they also have some key differences. This article lists the 10 key differences between them.
1. HTML5 standards are still being developed
The first thing to note is that although HTML5 is currently very popular, the HTML5 standard is still being developed and the standard is still changing. HTML4 has been around for more than 10 years.
2. Simplified syntax
HTML5 simplifies many subtle syntaxes, such as the doctype statement. You only need to write <! Doctype html>. HTML5 is compatible with HTML5 and XHTML1, but not SGML.
3. The <canvas> label replaces Flash.
Flash brings troubles to many Web developers. A bunch of code and plug-ins are required to play Flash on webpages. <Canvas> Labels allow developers to use only one tag to interact with the user's UI. Although the <canvas> label cannot implement all Flash functions, the <canvas> label will make Flash look better soon.
4. Added One principle of HTML5 design is to better reflect the semantic nature of the website. Therefore, tags such as 5. Added <section> and <article> labels.
Similar to 6. Added <menu> and <figure> labels.
<Menu> it can be used to create a traditional menu or a toolbar or context menu. <Figure> labels make the text and Image Layout of webpages more professional.
7. Added <audio> and <video> labels.
These two tags may be the two most useful tags in HTML5. As the name suggests, these two tags are used to play audio and video.
8. Brand new forms
HTML5 makes a lot of changes to the <form> and <forminput> labels, adds many new attributes, and modifies many attributes.
9. Delete <B> and <font> tags
10. Delete the <frame>, <center>, and <big> labels.
I can't remember when these labels were used last time.