10 most common HTML5 Interview Questions and answers-

Source: Internet
Author: User
Tags sessionstorage
10 HTML5 interview questions and answers are selected. This is the most common interview question for Web developers. After you have mastered these important interview questions, you will surely feel that your understanding has improved. Let's take a look ....,. 10 HTML5 interview questions and answers are selected. This is the most common interview question for Web developers. After you have mastered these important interview questions, you will surely feel that your understanding has improved. Let's take a look.

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

HTML5 document type is simple:

HTML5 uses UTF-8 encoding example:

2. How to embed audio in HTML5?

HTML5 supports audio in MP3, Wav, and Ogg formats. The following is a simple example of embedding audio in a webpage:

  1. Your browser does 'nt support audio embedding feature.

3. How to embed videos in HTML5?


Similar to audio, HTML5 supports MP4, WebM, and Ogg videos. The following is a simple example:

  1. Your browser does 'nt support video embedding feature.

4. In addition to audio and video, what media tags does HTML5 have?

HTML5 provides strong support for multimedia. In addition to audio and video tags, it also supports the following tags:

Tags define embedded content, such as plug-ins.

It is useful for defining multiple data sources.

Labels define external text tracks for media such as video elements. It is used to specify subtitle files or other files containing text that are visible during media playback.

5. What is the use of HTML5 Canvas elements?

The Canvas element is used to draw images on a web page. The element tag is powerful in that it can be used to perform graphic operations directly on HTML,

6. What are the differences between HTML5 Storage types?

HTML5 can store data locally. Previously, cookies were used. HTML5 provides the following two local storage solutions:

  • LocalStorage is used for persistent local storage. The data will never expire and the browser will not be lost.
  • SessionStorage can only access pages in the same session and the data will be destroyed after the session ends. SessionStorage is not a persistent local storage, but a session-level storage.

7. What new form elements does HTML5 have?

HTML5 adds many new form elements for developers to build better Web applications.

  • Datalist
  • Datetime
  • Output
  • Keygen
  • Date
  • Month
  • Week
  • Time
  • Color
  • Number
  • Range
  • Email
  • Url

8. What HTML 4 labels does HTML5 discard?

HTML5 discards outdated and unreasonable HTML tags:

  • Frame
  • Frameset
  • Noframe
  • Applet
  • Big
  • Center
  • Basefront

9. What new APIs does HTML5 provide?

HTML5 provides the following application APIs:

  • Media API
  • Text Track API
  • Application Cache API
  • User Interaction
  • Data Transfer API
  • Command API
  • 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. It provides offline functions that allow applications to obtain local website content, such as HTML, CSS, images, and JavaScript. This feature can improve the website performance. Its implementation is based on the manifest file, as follows:

  1. .....

Compared with the traditional browser cache, it does not force users to access the website content to be cached.

Via: http://www.yyyweb.com/3209.html

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.