In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains "what are the differences between html and html5". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "what are the differences between html and html5"?
Differences: 1, HTML document type declaration is long and complex, while HTML5 document declaration is relatively easy for programmers to read and develop quickly; 2, HTML5 supports SVG, canvas and other virtual vector graphics, while HTML does not support; 3, HTML itself does not support audio and video, and HTML5 support, and so on.
The operating environment of this tutorial: windows7 system, HTML5 version, Dell G3 computer.
HTML
HTML is called Hypertext markup language, and most web pages are written in HTML code. With HTML, developers can determine exactly how multimedia, text, and hyperlinks are displayed in Web browsers. In HTML, tags are used to define text structure; tags and elements are defined by characters, and browsers are primarily responsible for rendering web content through these tags. But over time, the tags used to define document styles have almost been deprecated, because we have begun to like to increase the richness of web pages with stylesheets, and only content definition tags still form the core HTML.
HTML5
HTML5 is the fifth version of HTML, and many elements have been removed or modified in HTML5.
Over time, there have been many updates to HTML, and the latest version of HTML is HTML5. It is still a markup language, but it adds a lot of functionality to the original HTML and eliminates some of the rigors that exist in XHTML. It greatly improves the user experience.
The difference between html and html5
1. Document type declaration differences
In HTML 5, the Doctype declaration is very easy to use, and the Doctype declaration is too long and complex in HTML
The type declaration of the HTML document is as follows:
/ / or
The type declaration of the HTML5 document is as follows:
HTML5.0: the document states that HTML5 is easy to write, concise, and helpful for programmers to read and develop quickly.
2. The difference of vector graphics.
HTML5 supports SVG, canvas and other virtual vector graphics, while in HTML, vector graphics can only be used by combining it with different technologies such as Flash,Silver-light.
3. The difference between audio and video support
HTML does not support audio and video if it does not use Flash player support. HTML5 uses and tags to support audio and video control.
4. Structural semantic differences.
Html: there are no tags that reflect structural semantics, such as:
Html5: many semantic tags have been added, such as:,.
Some elements have been added and modified relative to HTML,HTML5.
5. Grammar processing
HTML cannot handle inaccurate syntax; HTML5 can handle inaccurate syntax.
6. HTML5 added new form controls, such as date and time, email, number, range, phone, URL, search, etc.
7. The properties of charset,async and ping are part of HTML 5, and there are no attributes such as charset,async and ping in HTML
8. Enhanced support for Web application functionality: allowing browsers to run as an application platform in HTML5 does not require any JS or Flash-based approach, because the elements inherent in HTML5 provide all the functionality.
9. The newly added and elements are components of the interactive element specification, but they are not often used or talked about by the developer community. However, these two projects can be used to ensure enhanced Web interactivity. For simplicity, tags are used to represent menu commands in mobile and desktop applications.
Thank you for your reading, the above is the content of "what are the differences between html and html5". After the study of this article, I believe you have a deeper understanding of the difference between html and html5, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.