h5bp/html5-boilerplate — pull request #925 by dhaigh (2012-01-20 05:15:29+00:00)
Title: Add IDs to <header> and <footer>

HTML5 semantics are awesome. The header and footer elements are reusable in different parts of your site, not just the main top and bottom of every page, e.g. comments, sections of page content, lists of blog posts etc. It makes more sense to me to put an ID on the main header and footer of the site and style with `#header` and `#footer` since they are a one off thing. It means that (unless you're doing something like `body > header`) you're not blasting every header and footer element in the page, so if you want to do more

goodness in different parts of your site like you know you want to, they don't get the styles you set for your site-wide footer.

The spec has an example of multiple footers in different places.

http://dev.w3.org/html5/spec/Overview.html#the-header-element
http://dev.w3.org/html5/spec/Overview.html#the-footer-element