WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: visual focus for anchor tags

for

From: Dawn Budge
Date: Feb 16, 2011 3:21AM


Hi,
as an aside to your original question, do you know you can also use IDs on
any element as well as name attributes on anchors? Works on modern
browsers inc. IE6. You have to go way back to find one that doesn't
(Netscape 4 I think?)
e.g.<a href="#content>Skip to content</a>logos, navigation, etc.
<div id="content">main content</div>
Hope that helps.Dawn

----------------------------------------
From: "Hoffman, Allen" < <EMAIL REMOVED> >
Sent: 15 February 2011 19:41
To: "WebAIM Discussion List" < <EMAIL REMOVED> >
Subject: Re: [WebAIM] visual focus for anchor tags

Code:

Skip function:

src="images/spacer.gif" alt="Skip Navigation" border="0" height="10"
width="10" />

Anchor:

-----Original Message-----
From: Jukka K. Korpela [mailto: <EMAIL REMOVED> ]
Sent: Monday, February 14, 2011 4:34 PM
To: WebAIM Discussion List
Subject: Re: [WebAIM] visual focus for anchor tags

William Lawrence wrote:

> Expected browser behavior is that only when an anchor element contains
> an HREF attribute in the opening anchor tag will the anchor element
> ever receive visual focus.

I would not expect an anchor (A) element without HREF to ever receive
focus
without extra code (such as TABINDEX attribute). Maybe that's what you
meant
too, but I wanted to emphasize that it's not just a matter of missing
visual
indication of focus - the element just isn't part of the tabbing order
or
otherwise focusable.

The URL of a problem page would have helped a lot in addressing the
problem.
Actually, without it, there probably isn't much more one can say about
it.

--
Yucca, http://www.cs.tut.fi/~jkorpela/