WebAIM - Web Accessibility In Mind

E-mail List Archives

RE: Skip navigation coding

for

From: Jim Thatcher
Date: Aug 29, 2005 4:40PM


Hi Helen,



1. Your skip links at the top of the page,

<a href="#localnav" title="go to expanded menu" name="localnav"></a>

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

Need to have some content. There is nothing for anybody to see.



2. The target must be a named anchor - you didn't close the anchor tag and
just have:

<a name="localnav"> (no closing </a>)



3. You can't use the same name attribute on the link, and the target anchor.




Here is a combination of your links and the targets that would work form the
keyboard according to the current "simplest" coding technique
(http://jimthatcher.com/news.htm#haslayout).



<a href="#localnav" >go to expanded menu </a>

<a href="#skip"> begin main content </a>

.

<span style="position:absolute;"><a name="localnav"
id="localnav">&nbsp;</a></span>

.

<span style="position:absolute;"><a name="skip" id="skip">&nbsp;</a></span>



You may be wanting to hide that skip link content - read about it at
http://jimthatcher.com/webcourse4.htm or
http://rampweb.com/Accessibility_Resources/Section508/skip_navigation.asp
which is more up to date.



Jim



Accessibility Consulting: http://jimthatcher.com/

512-306-0931