The Underscores starter theme offers a specific HTML structure. Most parts of it are understandable. But there is one part that seems either unclear or superfluous.
Here is the outline:
div.site
header#masthead.site-header
div#content.site-content
div#primary.content-area
main#main.site-main
/* Here goes either article or archive content */
aside#secondary.widget-area
section.widget /* Multiple widgets */
footer#colophon.site-footer
So, all of the tags, IDs and classes more or less are understandable, except for this part:
div#content.site-content
div#primary.content-area
main#main.site-main
This same structure is used on both singular type pages and archives. Why on earth did they use three DIVs to wrap content?
AlsoThe aside#secondary.widget-area
seems to be out of place. Looks like it should be inside of div#content.site-content
. Is there a specific reason why they've done it?
My hypothesis is that it's just a kind of semi-phylosophical intention: it is a starter theme, andas a developer has to move thesibling of aside#secondarydiv#primary.widgetcontent-area
inside div#content.site-content
, just for the sake of making a change.
Can anyone giveIs there a more pragmatic explanation ofspecific reason why they've structured their theme'sUnderscores theme HTML is structured this particular way?