In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article will explain in detail what are the common HTML5 interview questions, the editor thinks it is very practical, so share it with you for reference. I hope you can get something after reading this article.
Question 1. What is the new HTML5 document type and character set?
Answer: the HTML5 document type is simple: HTML5 uses UTF-8 encoding.
Question 2. How to embed audio in HTML5?
A: HTML5 supports audio in MP3, Wav and Ogg formats. Here's how to embed audio in a web page.
Question 3. How to embed video in HTML5?
A: similar to audio, HTML5 supports video in MP4, WebM and Ogg formats.
Q4. What other media tags are there besides audio and video,HTML5?
A: HTML5 provides strong support for multimedia. In addition to audio and video tags, tags define embedded content, such as plug-ins. 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 that contain text that are visible when played by the media.
Question 5. What is the use of the HTML5 Canvas element?
Answer: the Canvas element is used to draw graphics on a web page, and the canvas element of HTML5 uses JavaScript to draw images on the web page.
Question 6. What is the difference between HTML5 storage types?
A: HTML5 can store data locally, which was previously used by cookies. HTML5 provides the following two local storage schemes: localStorage is used for persistent local storage, data is never expired, and browsers are closed without loss. SessionStorage only pages in the same session can be accessed and the data is destroyed when the session ends. So sessionStorage is not persistent local storage, just session-level storage.
Q7. What are the new form elements in HTML5?
A: HTML5 has added a lot of form elements that allow developers to build better Web applications. Datalist datetime output keygen date month week time color number range email url .
Question 8. Which HTML4 tags have been discarded by HTML5?
HTML5 discarded some outdated and unreasonable HTML tags: frame frameset noframe applet big center basefront.
Q9. What new API does the HTML5 standard provide?
Answer: the main application API provided by HTML5 is: Media API Text Track API Application Cache API User Interaction Data Transfer API Command API Constraint Validation API History API.
Question 10. What's the difference between HTML5 application caching and browser caching?
A: application caching is one of the important features of HTML5, which provides offline access to local website content, such as HTML, CSS, pictures, and JavaScript. This feature can improve the performance of the website, and its implementation is based on manifest files.
This is the end of this article on "what are the common HTML5 interview questions?". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.
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: 248
*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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.