Modernizr detects HTML5 and CSS3

Modernizr is a JavaScript library that helps you take advantage of emerging web technologies (CSS3, HTML 5) while still maintaining a fine level of control over older browsers that may not yet support these new technologies. Once your page loads, Modernizr will run and go through all of its tests. It’ll automatically add all the classes to […]

Modernizr is a JavaScript library that helps you take advantage of emerging web technologies (CSS3, HTML 5) while still maintaining a fine level of control over older browsers that may not yet support these new technologies. Once your page loads, Modernizr will run and go through all of its tests. It’ll automatically add all the classes to the <body> element of the page, and these classes will be along the lines of body.feature or body.no-feature, with the former indicating that the current browser supports that specific feature and the latter indicating that the browser does not support the feature.

More infoModernizr