WebAIM - Web Accessibility In Mind

E-mail List Archives

RE: Visible skip navigation links, was: good example

for

From: julian.rickards@ndm.gov.on.ca
Date: Nov 13, 2003 9:53AM


For some reason, this reply to Jim Thatcher's message went directly to him
instead of the list: here it is for the rest of you.

Jules

-----

By named anchor, do you mean <a name="linkname"></a>?

I was told recently that this construct is not valid, especially if you are
using XHTML. The name attribute has been replaced by the id attribute. When
I thought about what I was told, I realized that the link to the anchor is
preceeded by a "#" which is a symbol representing an id. Now, when I create
a skip link (or any link to a named anchor), I use:

<a href="#content">Skip to content</a>

and then further down in the code, I will use:

<h1 id="content">Heading</h1>

and the link works (not surprisingly once I thought about it).

---------------------------------------------------------
Julian Rickards
Digital Publications Distribution Coordinator
Publications Services Section
Ontario Ministry of Northern Development and Mines
Phone: (705) 670-5608
Fax: (705) 670-5690


> -----Original Message-----
>
> There are a couple of work-arounds that I know about. Make
> the named anchor,
> actually an empty link - this is annoying for some but most
> reliable. It
> seems also that when the named anchor is in a table cell, then tabbing
> works.


----
To subscribe, unsubscribe, suspend, or view list archives,
visit http://www.webaim.org/discussion/