10 most common HTML5 Interview Questions and Answers, html5 Questions and answers

Source: Internet
Author: User
Tags website performance sessionstorage

10 most common HTML5 Interview Questions and Answers, html5 Questions and answers

1. What is the new HTML5 document type and character set? HTML5 document type is simple: HTML5 uses UTF-8 Encoding

2. How to embed audio in HTML5? HTML5 supports audio in MP3, Wav, and Ogg formats.

3. How to embed videos in HTML5? Similar to audio, HTML5 supports MP4, WebM, and Ogg videos.

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, 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 webpages. The canvas Element of HTML5 uses JavaScript to draw images on webpages.

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, data will never expire, and close 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 some 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 website performance, and its implementation relies on manifest files

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.