Article and section elements

Semantic markup is a wonderful thing. With it, HTML becomes a rich landscape of meaningful, structured text that is transparent to screen readers and search engines. Without it, the web becomes just a featureless blob of text. As Jeffrey Zeldman, godfather of the web, says in Designing with Web Standards, Third Edition (2010):

[N]onsemantic slop […] makes pages fat, unfindable, and unfriendly to people with (permanent or temporary) disabilities.

One problem that I occasionally come across, though, is that not every content type in the analogue world has a clearly corresponding HTML element. In such cases, I don't feel 100% confident about my markup choices. For a great example, look no further than this very site. I suppose that my blog posts should be contained in an element, but what about the teasers on the index page? Should they appear in or tags, or perhaps something else? And what about the Comments section at the bottom of this page? Is this a subsection of the main article, or should it be in a separate sibling section (or article or whatever)? Ach!

What prompted this line of thought was when I ran a page of markup from CSS Wizardry through the W3C HTML Validation Service. It returned the following error reports:

Warning: Article lacks heading. Consider using h2-h6 elements to add identifying headings to all articles.
Warning: Section lacks heading. Consider using h2-h6 elements to add identifying headings to all sections.

So, when you use and tags, it looks like you're supposed to use a heading. Great! What else don't I know about them? Let's find out.

The element

Here is an abbreviated version of the description of the article element on W3C .