Measure the test taker's knowledge about HTML5 new features supported by the browser-

Source: Internet
Author: User
HTML5 is not a brand new thing, but most people do not know much about HTML5. (If You Want To Know HTML5, you can view the HTML5 video published by IE9 .) Although the latest mainstream browsers, such as IE9, Firefox4, and Chrome10, have begun to support HTML5 features ...,. HTML5 is not a brand new thing, but most people do not know much about HTML5. (If You Want To Know HTML5, you can view the HTML5 video published by IE9 .) Although mainstream browsers, such as IE9, Firefox4, and Chrome10, have started to support HTML5 features in the new version, all browsers currently have incomplete support for HTML5, this is mainly because HTML5 is still in the preparation process. If you want to check whether your browser supports the features of HTML 5, you can refer to one of the methods described below.

When a browser renders a web page, it constructs a Document Object Model (DOM ). This is a set of objects used to represent HTML elements on a page. Every element, such as every

, Each

Each object has a different DOM object representation. Of course, there is also a global object, such as window and document, but they are not used to represent specific elements.

All DOM objects have some common attributes and their own unique attributes. Browsers that support the HTML 5 feature will include this unique attribute. Therefore, we can use this technology to detect what new features the browser supports. Later in this section, we will introduce this technology in detail from ease to difficulty.

Modernizr -- HTML 5 detection Library
Modernizr is an open-source JavaScript HTML 5 Feature Detection Library Based on the MIT protocol. It can detect many features of HTML 5 and CSS 3. You can find the latest version (the current version is 1.7) on its home page or here's address (modernizr-1.7.min.js, pay attention to modifying the suffix ). Like other JS libraries, you should introduce them in the head block:

 Dive Into HTML5

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.