Modernizr
Modernizr looks like an easy way to take advantage of new HTML5 and CSS3 features before they’re universally available across browsers. Some JavaScript detects all of the features you might want to use, and then decorates the <html> tag with classes that describe what the browser is capable of at the moment. Then you can implement features as you see fit.
That enforces the idea of progressive enhancement – you have to think about the base case (features not available) before you decorate the content with the latest and greatest. And because the script detects the availability of features, and not specifically the make and model of the browser, new browsers (or older, rarer ones) shouldn’t cause confusion.

One Response to “Modernizr”
If you only need to detect a couple of features and Modernizr would be overkill, here’s a good resource of snippets for detecting various features: http://diveintohtml5.org/everything.html