WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: visual focus for anchor tags

for

From: Hoffman, Allen
Date: Feb 15, 2011 12:42PM


Code:

Skip function:
<a href="#content" class="skipnav" title="Skip Navigation"><img
src="images/spacer.gif" alt="Skip Navigation" border="0" height="10"
width="10" /></a>

Anchor:
<a href="#content" title="begin main content" name="content"></a>

-----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/