10 most common HTML5 questions and answers

Source: Internet
Author: User
Tags browser cache sessionstorage

1. What is the new HTML5 document type and character set?

The HTML5 document type is simple:

HTML5 using UTF-8 encoding

2. How to embed audio in HTML5?

HTML5 supports MP3, Wav, and OGG-formatted audio, which is embedded in the Web page

3, how to embed video in HTML5?

Similar to audio, HTML5 supports videos in MP4, WebM, and OGG formats

4. What media labels are available in addition to audio and VIDEO,HTML5?

HTML5 provides strong support for multimedia, except for audio and video tags, which define embedded content, such as plugins.  useful for defining multiple data sources. tags specify external text tracks for media such as video elements. Used to specify subtitle files or other files containing text that are visible when the media is playing.

5. What is the use of HTML5 Canvas elements?

Canvas elements are used to draw graphics on a Web page, and HTML5 canvas elements use JavaScript to draw images on a Web page.

6. What is the difference between HTML5 storage types?

HTML5 is able to store data locally, before using cookies. The HTML5 provides the following two local storage scenarios: localstorage for persistent local storage, data never expires, and browser shutdown is not lost. Sessionstorage pages in the same session can be accessed and the data is destroyed when the session ends. So sessionstorage is not a persistent local store, it's just session-level storage

7. What are the new form elements in HTML5?

HTML5 has added a number of form elements that allow developers to build better Web applications. DataList datetime output keygen date month Week time color number range email URL

8. What HTML4 tags are HTML5 discarded?

HTML5 discarded some outdated, unreasonable HTML tags:

Frame Frameset Noframe Applet Big Center Basefront

9. What new APIs does the HTML5 standard provide?

The application APIs provided by HTML5 are mainly:

1. Media API

2.Text Track API application Cache API

3.User Interaction Data Transfer API

4.Command API

5.Constraint Validation API History API

10. What is the difference between HTML5 application cache and browser cache?

Application caching is one of the important features of HTML5, providing offline use, allowing applications to get local content such as HTML, CSS, pictures, and JavaScript. This feature can improve the performance of the site, its implementation with the help of the manifest file

10 most common HTML5 questions and answers

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.