How HTML5 element names were decided
Share this on Twitter
I had the pleasure of attending a talk by Chris Mills, creator of the Opera Web Standards Curriculum, which was organised by those Standardistas fellas and Build. Chris was talking about HTML5 and one of the things I found interesting was the research behind how the HTML5 element names came about.
Google looked at something like a billion web pages and measured what ID and class names were used the most.
The results looked like this:
See the full results here.
Opera then conducted their own research too, which came up with similar results.
Full class results here.
Full ID results here.
And that’s how HTML5 element names were decided
As you can see the new HTML5 element names were decided based on the most commonly used IDs and classes that web designers were already using.
Both ‘main’ and ‘content’ are the obvious omissions. I’m not 100% behind the reasoning for this but I guess ‘section’ and ‘article’ work better semantically for the main content areas.
Good to see ‘msonormal’ didn’t creep in there.
5 Appreciated Comments
Have a comment? Tweet @leemunroe and I'll be glad to respond.