WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Duplicate linkage

for

From: Steven Henderson
Date: Sep 1, 2009 9:25AM


I'm thinking of a list, Jared, yes. Something like this:

<li><a href="http://www.website.com/blue.html"><span>Best blue
product</span> <img src="products/blue.jpg" alt="" /></a></li>

I'd like to use a block level tag instead of the span, but to place the
image and a text title within the a tag, I need to use an inline tag.

Thoughts!?

Steven



-----Original Message-----
From: <EMAIL REMOVED>
[mailto: <EMAIL REMOVED> ] On Behalf Of Jared Smith
Sent: 01 September 2009 16:18
To: WebAIM Discussion List
Subject: Re: [WebAIM] Duplicate linkage

On Tue, Sep 1, 2009 at 9:10 AM, Steven
Henderson< <EMAIL REMOVED> > wrote:

> With your feedback, I am thinking for the purposes of a dozen
> portfolio items, that a list of linked images would work best with a
> simple span instead of a heading. Your thoughts? Do I lose anything in
> ditching headings?

It all depends on whether the images are actually headings or not. It is
relatively rare for a link to be the only thing within a heading.
If it's a link to somewhere else, it's likely not a heading for content that
follows, right?

If you have a dozen portfolio items, unless there is content underneath each
item, it's unlikely that a heading is appropriate. A <div> would probably be
more appropriate than a <span>, because a <div> is a block-level element
that would be used to offset each portfolio item.

I'd also point out that you used the word "list" in your description.
Perhaps it should be a list?

Jared