Nice tutorial on Modernizr and feature detection: Use Modernizr to Detect HTML5 Features.