Modernizer

Modernizr is a JavaScript library that tests a browser for specific HTML5 and CSS3 features and reports back what it can and cannot do. Instead of assuming a browser's capabilities, developers write code that responds to what is actually available. This makes it easier to build sites that degrade gracefully on older browsers while taking advantage of newer features where present.