JDK The new features coming to Java In Internet Explorer 8 and earlier, if you try to style an element that Internet Explorer does not recognize—for example, some of the new HTML5 elements, such as section or article —the element will not be styled.
But the real power of Modernizr is its ability to check for the presence of specific features. When you download Modernizr, you must specify which features you want to check for, as you can see in Figure 1. Figure 1. Customizing a Modernizr build.
But for live websites, you will always want to use a production version that only checks for the features you will be using. When you use a customized build for Modernizr, you need to reference it from the head element of your HTML page because the html5shiv enables HTML5 elements in Internet Explorer and so must execute before the body. HTML5 documentation also suggests that the Modernizr script be placed after the style sheet references.
In Listing 1. Modernizr is particularly useful because it gives you a choice of how to use it. We have implemented a fix to restore functionality for people using 7.
Check out the full list of features that Modernizr detects, or learn more about conditional resource loading with Modernizr. Development version: 7.
Drupal is a registered trademark of Dries Buytaert. Skip to main content Skip to search.
Can we use first and third party cookies and web beacons to understand our audience, and to tailor promotions you see? Yes, please No, do not track me. By industry Case studies For hosting.
Marketplace Hosting Training. Demo online Download.
Log in Create account. Search form Search. Drupal Core Distributions Modules Themes. Primary tabs View active tab Version control Automated testing. By rupl on 16 August , updated 27 April How it works Modernizr runs quickly on page load to detect features — it does not add or subtract any functionality from any browser.