WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: page should contain no more than two h1 elements

for

From: Steve Green
Date: Jun 15, 2009 11:55AM


There's really no answer to this discussion.

Some people structure their headings in terms of importance, in which case
they will probably only have one h1. Others (like me) structure their
headings according to the type of content, in which case we often have more
than one h1. I believe the HTML specification allows both or is at best
ambiguous.

Nevertheless, 18 h1 headings does sound excessive, although there may be a
good reason for them.

As a separate issue I have a problem with tools that report non-compliances
as a result of heuristics such as "The text content of each h1 element
should match all or part of the title content". It may (or may not) be good
practice but many such heuristics including this one are not mandated in any
W3C specification.

Steve



-----Original Message-----
From: <EMAIL REMOVED>
[mailto: <EMAIL REMOVED> ] On Behalf Of Dean Hamack
Sent: 15 June 2009 18:40
To: WebAIM Discussion List
Subject: Re: [WebAIM] page should contain no more than two h1 elements

I never use more than one h1.

The h1 tag is supposed to be the most important tag on the page, and it
should describe what the rest of the content is about. In most cases, this
is the page title, like "Contact Information"

Then under that h1 you might have additional sub-headings like "E-Mail
Directory", or "Customer Service".

I can't think of any situation that would require more than one h1.


On 6/15/09 10:33 AM, "M Akram Danish" < <EMAIL REMOVED> > wrote:

> can anyone explain this
>
> The page should contain no more than two h1 elements.Warn: 18 h1
> elements were found.
> The text content of each h1 element should match all or part of the
> title
> content.Warn: 18 h1 elements do not meet the criteria.
> h1 is level 1 heading if we have sub heading then we will use h2 but
> if we have many main heading then what should we do if we cannot use
> more than 2 h1?