Re: Issue of headers checking

Andrei Korzhyts (andreikorzhyts@gmail.com) wrote:

>
> Why does it offer h2-h6 instead of h1-h6?
>

Good question. The document linked to in the warning,
https://www.w3.org/wiki/HTML/Usage/Headings/Missing
refers to h1–h6.headings.

It might be conjectured that <h1> is inapplicable when there are two
<article> elements in the document, so that they must be logically at level
2, not 1, and <h1> should thus be reserved for a top-level heading for
the document that contains both <article> elements. But, first, this is
flawed, since the two <article> elements might contain two versions of the
same content (e.g. original and translation), hence both being at level 1,
and, second, I get the same warning for a document with a <body> that
contains just a single <article> element.

I would therefore read the warning as referring to heading elements in
general, unless someone can pop up and present a rationale for the current
wording.

Jukka

Received on Wednesday, 22 July 2020 16:37:36 UTC