The difference between HTML 5 and HTML 5

Source: Internet
Author: User

The difference between HTML 5 and HTML 5

More and more systems and application platforms use html5 as the production standard, and web page creation is included. From the summary of various platforms, HTML5 has two major features:

1. enhanced the performance of Web pages.

2. Added Web application functions such as local databases. The Html5 Web page creation technology was improved in depth, and powerful functions were gradually applied to Web page creation and Web page construction.

Html5What is it, and what are the advantages of using html5 web pages for creation?

    In a broad sense, Html5 consists of three parts: html5, css, and JavaScript. It is not only based on the first impression of html5. html5 makes the layout of web pages more flexible and detailed, you can create a better Web Page Structure with richer tags, better support for media playback, editing, and storage, and stronger compatibility.

The similarities between HTML5 and HTML:

1. They are the basis of web pages and are used to build the "skeleton" of web pages ".
2. tags with the same basic, such as div, form, p, etc..

HTML5 is different from HTML:

1. Different browsers have different levels of rendering or support for HTML5, but the support or rendering for HTML is very stable.
2. html5 is developing, which is equivalent to an upgraded version of html.
3. html5 users can edit part of the webpage content.
4. html5 elements can make image scripts more flexible.
5. The new API in html5 makes page program development easier.
6. html5 improves page form operations.
7. html5 adds many new tags, such as

Now let's talk about the new features of HTML5:

    1. added an HTML document type: <DOCTYPE html>

HTML5 is not based on SGML, so you do not need to reference DTD, but you must use doctype (doctype declares the first line in the HTML document, before the HTML Tag. Inform the browser parser of the document used to parse this document. If the DOCTYPE does not exist or the format is incorrect, the document will be displayed in compatible mode) to regulate browser behavior (let the browser run as they should ). HTML4.01 is based on SGML, so you need to reference the DTD to inform the browser of the document type used.

2. Added some structured markup elements:

Painting: canvas;

Video and audio elements used for media playback;

Local offline storage: localStorage and sessiorStorage.

Better semantic content elements:

Form Control: calendar, date, time, email, url, and search.

New technologies: webworker, websocket, and Geolocation.

CSS is more like cropping multiple "rectangles", splicing them into a pattern, and then coloring the pattern. However, the canvas starts from a vertex, extends countless vertices, gets a line, and gets a surface (pattern surface of a triangle, circle, rectangle, and so on) after the extension line, and then draws the line or surface, color. CSS is more like a hand-made class for children, while canvas is more like drawing with a pen.

<Header>, <nav>, <footer>, <section>, and so on, there are many other labels that make code more semantic, it is easier and easier for people who read code to understand code.

Audio and video can be said to be a surprise for everyone. Although we can play media files through flash or some videos and audio plug-ins, audio and viedo are now more standard; he can play video and audio in the browser without using any plug-in.

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

The above is my better understanding of HTML5 and HTML, as well as my understanding of new HTML features. Thank you for your support!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.