Just a heads up based on my recent experience — there are a lot of writeups on HTML5, with a lot of of them suggesting that a simple set of javaScript document.createElement like the ones in the example below are all you need to use the new HTML5 tags in older browsers that don’t know what the heck HTML5 is. Well, while the document.createElement does in fact keep the browsers from choking on the tags, I’ve found getting styling of anchor tags within a nav tag is problematic in a set of browsers. You’ll never guess which ones: Internet Explorer. I’ve now experience on two separate projects IE’s inability to process the CSS of something along the lines of:
nav a {color:#ccc; text-decoration:none;}
So I’m back to having a more traditional nav that utilizes a div with “nav” as the id or class name:
<div id="nav">
</div>
It just doesn’t work in older IE versions. Yet another reason to use Chrome, Firefox, Opera, or basically anything modern. If you’re still foolishly using IE, at least use the latest (though that hasn’t been without its problems in my experience either!)
document.createElement('header');
document.createElement('nav');
document.createElement('section');
document.createElement('article');
document.createElement('aside');
document.createElement('footer');
Regardless, while all browsers can’t be cutting edge and support every feature and standard, at least Google, Mozilla, Apple, etc. try to. IE just plays catch up.