Modernizr is a JavaScript library that detects which features a browser supports. Learn here how it works with HTML5.