The main element

Posted: January 15, 2013 Comments

View http://www.iandevlin.com/blog/2013/01/html5/the-main-element

Ever since the HTML5 Boilerplate debut, we’ve all likely been using some form of <div id="main" role="main" /> in our documents. If you took some time to research what the role="main" bit was all about, you’d find that it’s intended to be the main content of a document. Sweet! For various reasons, though, a number of people felt that main deserved to be an element within the HTML5 spec in and of itself. Well now it is.

Get my newsletter

Receive periodic updates right in the mail!
  • This field is for validation purposes and should be left unchanged.

Leave a Reply

Your email address will not be published.