Osmo Saarikumpu wrote:
> Organizing a page using headings (Techniques for WCAG 2.0) at:
>
>
https://www.w3.org/TR/2012/NOTE-WCAG20-TECHS-20120103/G141
>
> says:
>
> "To facilitate navigation and understanding of overall document
> structure, authors should use headings that are properly nested (e.g.,
> h1 followed by h2, h2 followed by h2 or h3, h3 followed by h3 or h4,
> etc.)."
That’s an accessibility recommendation, and a bit poorly formulated (we
don’t nest headings; we nest sections). It’s not relevant to validity.
Besides, even in its own context, the quoted text is a recommendation,
not a conformance requirement. It uses “should”; requirements use “shall”.
I cannot find a statement to that effect there.
> I'm wondering if this is
> correct, as the validator passes my test page
Your test page has a BODY element with just H1, H3, and few P elements.
I don’t see why it would be invalid. (It might be different in ISO HTML,
which was based on HTML 4.01 with strict heading level rules enforced in
an ad hoc manner. But ISO HTML was an exercise in futility.)
The “outline algorithm”, which is a rather theoretical approach
(probably not implemented except in some experimental checking
programs), creates a section that starts with the H3 element and here
extends to the end of the BODY. It does not construct an orphan
subsubheading. So what is wrong, in some sense, is just the use of H3
instead of H2 for a second-level heading.
--
Yucca,
http://jkorpela.fi