dorayme said:
No, a heading must describe the topic *directly* under it.
No, a heading is a heading for part of the document implicitly defined by
the overall use of headings. The HTML recommendations are implicit and vague
in semantic issues like this, though they make feeble attempts at describing
proper use of headings. The little known HTML standard tries to make it
clearer, though only with extra syntax, and you need to read the User's
Guide to the standard to things described clearly:
http://www.scss.tcd.ie/misc/15445/UG.HTML#H1
To put it simply, h1 is a heading for anything that follows it, up to the
next h1 or the end of document, whichever occurs first. And h2 is a heading
for anything that follows it, up to the next h2 or h1 or end of document.
You might be using h6 because its default style is small.
Which is an odd default setting, strangely described and perhaps even
recommended in CSS recommendations. The foolish defaults generated foolish
usage, where h6 is used just to get "fine print", and this in turn implies
that browser vendors don't change the defaults, as they think that would
"break existing documents".
This, and a few other things like the huge default size (with bolding) for
h1, imply that one should always use CSS to suggest reasonable heading
formatting, as appropriate for the document's nature and style.
Regarding the original issue, it's a good rule of thumb that it's waste of
time or worse to try to "clean up" existing pages, unless they are a)
commercially or otherwise very important, b) frequently changed or c) being
renewed regarding purpose, structure, and content, not just code "clean up".
(Item "a" could be omitted from the list, since it almost certainly implies
the need for "b" or "c".)
Assuming that "a", "b", or "c" applies to the OP's page
https://files.nyu.edu/emf202/public/fr/limericks.html
it is evident that it should have only one h1 element. The authors name
should either be made part of that element or presented outside any heading
elements, since as such, it's not a heading. (It could be made a heading if
it preceded some "about the author" section.) You could write e.g.
<h1>Heading of the page<br><small>by A. Author</small></h1>
and style the small element separately if desired.
If the page's substance content is poems, and the rest is explanations, then
you could have one section with h2 heading for the explanations and another
section with h2 for the poems, making the poem headings h3, of course.
Alternatively, and probably better (think about a table of contents
generated from headings), you could make each poem a section at the 2nd
level, with h2 heading.
The decorative dividers before and between the poems look confusing (as they
suggest a fundamental division of the page, not consistent with its
structure) and a bit pompous, but especially the texts between them, now
marked as h1, confuse the casual reader. If they relate to the division of
the page into sections, then the heading issue needs to be reconsidered; and
then it's odd that a "heading" is both preceded and followed by a major
visual divider - what is it a heading for, then?
BY THE WAY, THERE IS NO REASON TO "SHOUT" I.E. WRITE TEXT IN ALL UPPERCASE,
IN HEADINGS OR OTHERWISE. IT MAKES TEXT LESS READABLE AND LOOKS CHILDISH OR
OUTDATED. EVEN IF YOU REALLY WANT YOUR HEADINGS TO APPEAR IN ALL LOWERCASE,
WRITE THEM IN NORMAL, "MIXED" CASE IN THE ELEMENT'S CONTENT AND USE THE CSS
SETTING TEXT-TRANSFORM: UPPERCASE.
The page seems to contain W3C recommended icon links for making absurd
noises claiming the document to be "valid HTML" and "valid CSS" (see
http://www.cs.tut.fi/~jkorpela/html/validation.html#icon ), but apparently
the author never bothered testing the links. Clicking on them results (on
normal modern browsers) in
"Sorry! This document can not be checked.
No Referer header found!"
The reason here is that the page has been transferred with https, for no
good reason. Worse still, if I try to access
http://files.nyu.edu/emf202/public/fr/limericks.html
the server redirects to the https address! Of course, this is probably the
server administrators' fault, but it still has an impact on the page. (If
you don't use such foolish icon links, probably the only downside of forced
https is unnecessary overhead in traffic, i.e. the page loads unnecessarily
slow, though usually the effect is not serious. However, one day the server
admin forgets to renew their certificate for the server or mess up with it,
and then you have serious problems.)
(I'm not surprised at seeing that the "W3C CSS Validator" actually reports a
syntax error, if the page is checked by URL.)