The ecosystem around HTML5 is really starting to take off. Considering it’s not supposed to reach the W3C Recommendation Status until 2022, I’d say that’s a good thing.
Since not all browsers implement the same features, it’s a little cumbersome to develop multiple variations of a feature in order to cater to each browser.
So something is obviously needed that provides a convenient and consistent way of handling those *ahem* inconsistencies…
Modernizr is one such tool.
Technically speaking, Modernizr is a JavaScript library that detects the various HTML5 (and CSS3!) features available in the current browser. It then adds a global object with all of the properties such that you can write conditionals to gracefully handle cases in which the feature is and isn’t available.
Simply put, you can use one line of code to determine whether or not a desired HTML5 feature is available.
Do note that Modernizr doesn’t add functionality to browsers that don’t implement HTML5. It simply provides a streamlined way of managing said functionality within your code.
Love this kind of stuff. Pumped for HTMl5. You?
[…] This post was mentioned on Twitter by churchcrunch, 8Bit. 8Bit said: Use Modernizr To Detect HTML5 and Provide Consistency http://bit.ly/9XsPyM […]