W3C: “Section lacks heading. Consider using h2-h6 elements to add identifying headings to all sections.”
Has CommonMark considered adding headings to
<section> as part of the spec? I ask because when checking my site for errors on the W3C’s validator, I consistently get warnings relating to the lack of a section heading for a footnotes section:
For example, this code
<section class="footnotes"> <ol class="footnotes-list">
returns a warning on validation check, because the W3C recommends every
<section> having an associated heading:
The theme of each section should be identified, typically by including a heading (h1-h6 element) as a child of the section element.
So, using my previous example, something like the following would be better
<section class="footnotes"> <h3 class="footnotesheading">Footnotes</h3> <ol class="footnotes-list">
Note that the actual heading could be set to
display: none via CSS, so that it doesn’t show in the stylized version of the webpage.
This is mostly a question of semantics. But semantics are important!
Just wondering whether the committee (?) has discussed this as of yet.