E-mail List Archives

Re: H1 before or after left nav menu?

for

From: Jared Smith
Date: Jan 28, 2016 11:04AM


Chaals McCathie Nevile wrote:

>> Regardless of where H1 goes, 'skip to content' link should go directly to
>> Page Text and Content, correct?
>
> Correct. Which should also be wrapped in a main element, for people with
> useful modern software.

Though it would be odd to have either a <main> element or the main
content of the page not begin with the <h1>.

If the sidebar is directly content-related (such as a table of
contents for the content), then it might make sense after the <h1>.
But generally I think this type of thing is more usable either before
the <h1> or (probably optimally) after the content, perhaps in an
<aside> element with a descriptive heading. If your structure has the
sidebar after the <h1>, but the <h1> does not describe or is not
applicable to the sidebar (e.g., it is site navigation), then this
would not be appropriate.

Jared