The main element

Published 4 years 5 months ago on January 15, 2013 — 0 min read


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.

Copyright © 2006—2017 Jonathan Christopher