Detecting HTML5 Features Using Modernizr
In the past I wrote a post about using feature detection instead of browser detection when writing web applications/sites. There are frameworks like jQuery that do that for you and all you have to do is to use them. There are other frameworks like Modernizr that are specializing in testing the current browser you use in order to detect whether it supports upcoming features such as HTML5 or CSS3.
What is Modernizr?
How to use the Modernizr?
Here is an example of detecting search input type:
Here is a check for SVG:
As you can see the API is very easy to use and easy to pick up. For further information about the API you can go to Modernizr’s documentation.