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 are the differences between HTML5 and HTML

2025-04-07 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 difference between HTML5 and HTML". 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 is the difference between HTML5 and HTML".

What are HTML5 and HTML?

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. [recommended: html reference manual] 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.

What HTML5 and HTML have in common:

1, are the basis of web pages, used to build the "skeleton" of Web pages.

2. Have basically the same tag, such as div,form,p and so on.

The difference between HTML5 and HTML:

1. Different browsers have different degrees of rendering or support for HTML5, but the support or rendering for HTML has been stable.

2. Html5 is developing, which is equivalent to the upgraded version of html.

3. Html5 users can edit part of the web page.

4. Elements in html5 can make image scripts more flexible.

5. The new API in html5 makes page program development easier.

6. Html5 improves the operation of page forms.

7. Html5 has added many new tags, such as, and so on.

New features of HTML5:

1. A new HTML document type has been added:

HTML5 is not based on SGML, so you don't need to reference DTD, but use doctype (doctype declaration is on the first line in the HTML document, before the HTML tag. Tells the browser's parser what document to use to parse the document. DOCTYPE does not exist or is not properly formatted to cause the document to be rendered in compatibility mode) to regulate browser behavior (let browsers run the way they should). HTML4.01 is based on SGML, so you need to reference DTD to tell the browser what type of document the document is using.

two。 Some elements of structured tags have been added:

Painting: canvas

Video and audio elements for media playback

Local offline storage: localStorage,sessiorStorage.

Better semantic content elements:, etc.

Form control: calendar,date,time,email,url,search.

New technology: webworker,websocket,Geolocation.

CSS is more like cutting multiple "rectangles", then splicing them together into a pattern, and then coloring the pattern. But canvas starts with points, lengthens countless points, gets lines, extends lines to get a face (triangle, circle, rectangle, etc.), and then strokes and colors the line or face. CSS is more like a handicraft lesson for children, while canvas is more like drawing with a pen.

There are many other tags, these tags make the code more semantic, make the people who read the code more popular and easy to understand, and make it easier for people to learn the code.

Audio and video can be said to be a surprise for html5, although in the past, no matter through flash, or some video, audio plug-ins can play media files, but now audio and video are more standard; he does not need to use any plug-ins to make video and audio play on the browser.

LocalStorage stores data for a long time, and the data is not lost after the browser is closed; the data of sessiorStorage is automatically deleted after the browser is closed.

Thank you for your reading, the above is the content of "what is the difference between HTML5 and HTML". After the study of this article, I believe you have a deeper understanding of the difference between HTML5 and HTML, 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.

Share To

Development

Wechat

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

12
Report