WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Heading order/nesting - was RE: H1 header in iframe

for

From: Bo Nilsson
Date: Aug 26, 2010 1:24PM


Hello!



I see a web page as consisting of two structures: the navigation and the
content structures. The user alternates between them, not thinking much of
which is the higher or lower, but aware of that one is the navigation, the
other the content. In this respect there can be one h1 for the navigation
and one h1 for the content. But for other reasons, such as search engines
and screen readers , the h1 should appear only in the content structure. The
dilemma can be solved by other mark upp than h1 in the navigation part, such
as style and logo for the site title. And than sparcely use of h2, if a
complex navigation structure.



Best regards

Bo Nilsson





----- Original Message -----
From: "Jukka K. Korpela" < <EMAIL REMOVED> >
To: "WebAIM Discussion List" < <EMAIL REMOVED> >
Sent: Thursday, August 26, 2010 8:00 PM
Subject: Re: [WebAIM] Heading order/nesting - was RE: H1 header in iframe


> Jared Smith wrote:
>
>> On Thu, Aug 26, 2010 at 10:38 AM, Jukka K. Korpela wrote:
>>
>>>>> And since I was taught there can't be an H2 without an H1
>>>>
>>>> I hear this being taught, but don't see any strong reason why it
>>>> must be this way. The spec certainly does not require it. Maybe I'm
>>>> missing something.
>>>
>>> The HTML standard requires it
>>
>> Does it?
>
> Yes it does:
> "An <H2> element shall be preceded by an <H1> element."
> http://www.scss.tcd.ie/misc/15445/15445.html
> That's technically just a comment in the DTD, but it is effectively
> normative, since the DTD otherwise contains (complicated) rules that
> impose
> this restriction. This is explained in the "User's Guide" to the standard:
> http://www.scss.tcd.ie/misc/15445/UG.HTML#H1
> (it's just very tough reading, not virtually incomprehensible like the
> standard texts themselves :-)).
>
>> Like I said, I may be missing something, but I do not see
>> anything in any HTML standard that requires an <h1> before any <h2>.
>
> There is only one HTML standard, and as I wrote, most people don't know
> about and need not know about it. But it's the standard, whereas HTML 4.01
> specification is just "W3C recommendation" - issued by an industry
> consortium, not a standards body, and written as a fairly loose technical
> spec, not with the exactness and style of standards.
>
> --
> Yucca, http://www.cs.tut.fi/~jkorpela/
>
>