O'Reilly logo

HTML5 Boilerplate Web Development by Divya Manian

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding HTML5 features safely with Modernizr

We looked at Modernizr briefly in Chapter 1, Before We Begin, but we haven't used it for anything much yet. It is highly recommended that we create a custom build of Modernizr. HTML5 Boilerplate comes with a custom build of Modernizr that includes every option available in the custom builder (modernizr.com/download/) including extras such as HTML5Shiv, resource loader (modernizr.load), media queries test, and the addition of CSS class names to the html tag based on the test results from Modernizr.

The custom build of Modernizr enables HTML5 elements in IE (read more about it at paulirish.com/2011/the-history-of-the-html5-shiv/). But, now, with our audio player, we have the opportunity to use the other ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required