In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "what is the relationship between html and html5". The content of the explanation 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 is the relationship between html and html5"?
HTML5 is the new standard of HTML, XHTML and HTML DOM. HTML5 is the fifth version of HTML. Many elements have been deleted or modified in HTML5. HTML5 is designed to support multimedia on mobile devices. Compared with HTML, depth and breadth have been further improved.
The operating environment of this tutorial: windows10 system, HTML5 version, Dell G3 computer.
What is the relationship between html and html5
HTML stands for Hypertext markup language and is used to design web pages using markup language. HTML is a combination of hypertext and markup language, which defines links between web pages; markup language is used to define text documents within tags, which define the structure of web pages. This language is used to annotate (in computer comments) text so that the machine can understand it and manipulate the text accordingly.
Most markup languages, such as HTML, are human readable. The language uses tags to define what must be done with text. It is used to construct and render content on a web page.
HTML5 is the fifth version of HTML, and many elements have been removed or modified in HTML5.
The difference between HTML5 and HTML
First of all, HTML5 has gone far beyond the scope of markup language, it is designed to support multimedia on mobile devices, compared with HTML, the depth and breadth have been further improved.
Next, let's look at the declaration file types of both:
HTML:
HTML5
As you can see above, in the document declaration, the HTML declaration code is very long and complex, while the HTML5 declaration is simpler and easier to remember, so HTML5 is more convenient for programmers to read and develop quickly than HTML.
In addition, the structural semantics of the two are also different. HTML has no structural semantic tags and is usually named, while HTML5 adds a lot of semantic tags, such as, and so on, to make the code structure clear and more readable.
HTML5 adds a powerful drawing function, through the drawing function, plus JS can achieve animation and pictures. But HTML4.0 can't. In HTML5, Canvas and SVG can draw, Canvas is equivalent to a canvas, 2D graphics can be drawn through JavaScript, and Canvas is rendered pixel by pixel. SVG is a scalable vector graphics, which is used to define the vector-based graphics of the network. SVG strictly follows the XML syntax, and its image files are readable and easy to modify and edit, and can be searched, indexed, scripted or compressed. It can be printed with high quality at any resolution.
In addition to the above, powerful HTML5 has also added video tags. This feature is not available in HTML4.0. It takes a long time to insert a video with HTML4.0, but all you need to do with HTML5 is the video tag.
I have been a front-end engineer for five years. I have sorted out the most comprehensive front-end learning materials, from the most basic HTML+CSS+JS to HTML5 projects. They are all sorted out and sent to every front-end partner, there are those who want to learn web front-end, or change careers, or college students, as well as those who want to improve their ability at work and are learning. You can talk to me privately if you need to. This is my front-end development qun. [603] [985] [993], you can ask me if you have any questions about learning web front end (learning methods, learning efficiency, how to get a job). Finally, you can click on a wave of attention.
Summary:
1. Document declaration differences
2. Structural semantic differences.
Html: there are no tags that reflect structural semantics, such as:
Html5: many semantic tags have been added, such as:,.
Compared to HTML,HTML5, some elements have been added and modified.
3. Drawing difference
HTML: scalable vector graphics used to define vector-based graphics for the network.
The canvas element of HTML5:HTML5 uses a script (usually JavaScript) to draw an image on a web page, which controls every pixel of the canvas.
4. 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.
5. Grammar processing
HTML cannot handle inaccurate syntax; HTML5 can handle inaccurate syntax.
Thank you for your reading, the above is the content of "what is the relationship between html and html5". After the study of this article, I believe you have a deeper understanding of the relationship 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.