Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What's the difference between html5 and html4?

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

The content of this article mainly focuses on what is the difference between html5 and html4. The content of the article is clear and clear. It is very suitable for beginners to learn and is worth reading. Interested friends can follow the editor to read together. I hope you can get something through this article!

Differences: 1, html5 simplifies the syntax, for example, the file type declaration only needs to be written as ""; 2, HTML5 document parsing is no longer based on SGML;3, html5 added semantic tags, abolished some web page beautification tags, so that the style and structure of the separation more thoroughly, and so on.

The operating environment of this tutorial: windows7 system, HTML5 version, Dell G3 computer.

HTML5 has grown at an amazing rate since it was officially launched in 2010, and now most major browsers support HTML5 (except for individual features that are not compatible with browsers), which shows that HTML5 is becoming more and more popular. It can be predicted that HTML5 will become the mainstream technology of web front end in the near future. HTML5 special effects are better suited to the era of mobile Internet and can better support multimedia running on mobile devices.

What is the difference between HTML5 and HTML4?

1. Syntax simplification

The introduction of html5 simplifies the syntax, such as doctype in the head, we just have to write it.

Html4 needs to be written as:

2. Standard aspect

HTML5 document parsing is no longer based on the SGML (Standard Generalized Markup Language) standard, but has formed its own set of standards.

3. Labeling

New semantic tags, including

Abolish some web landscaping tags to separate style from structure more thoroughly, including

By adding two tags to support the use of audio and video in multimedia.

In the past, when playing multimedia in a web page, you needed to use ActiveX or Plug-in to do it. With HTML5, use or tag to play video and audio, and you don't need to install anything else to play.

4. Attribute

Some form properties have been added, mainly the enhancement of the input property

Some new attributes have been added to other tags to make some attribute names have boolean attributes by default.

5. Storage

New WebStorage, including localStorage and sessionStorage

IndexedDB and WebSQL are introduced, which allow you to create database tables and store data on the browser side. The difference between the two is that IndexedDB is more like a NoSQL database, while WebSQL is more like a relational database. The W3C no longer supports WebSQL.

Application cache (application cache) is introduced to cache web, which can be used without network. By creating cache manifest files and application cache, it provides low-level technical support for PWA (Progressive Web App).

Thank you for your reading. I believe you have a certain understanding of the question of "what's the difference between html5 and html4". Go ahead and practice it. If you want to know more about it, you can follow the website! The editor will continue to bring you better articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report