WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Links as headings

for

From: Jukka K. Korpela
Date: Sep 17, 2014 10:16AM


2014-09-17 18:46, Weissenberger, Todd M wrote:

> Some of our partners are using heading levels on certain groups of
> links. It might look like:
>
> <h4>Links</h4> <h5><a href="">Link</h5> <h5><a href="">Link</h5>
> <h5><a href="">Link</h5> <h5><a href="">Link</h5>
>
> Any comment on this practice?

If that's actual markup, it's grossly invalid and won't work (missing
</a> tags, missing URLs).

If it's just sketchy and the point is simply that a list of links is
written with an h4 heading and with the links in h5 elements, then it
causes a completely wrong outline. The headings will appear as headings
for empty sections.

This does not matter much (if anything) in practice, but what matters is
that user agents will treat the h5 elements, and the user will be
mislead. For example, in headings reading mode, the links will be read,
but they not headings for anything.

I wonder what the excuse is. Let me guess... "SEO"?

Yucca