HTML5 Code Example
This page has been coded using common HTML5 tags and it validates correctly for HTML5. The CSS will not, of course, validate because it has been written to accommodate all browsers. Using the Modernizr JavaScript, the Document Object Model (DOM) is changed prior to rendering the page in the browser. The browsers that currently support more CSS3 elements than IE supports, will display the page with elements styled slightly differently - Web Forms in Opera and text shadows and rounded corners in Mozilla, as an example. View the source code or download the files here: download HTML5 Boilerplate.