WebAIM - Web Accessibility In Mind

E-mail List Archives

RE: Visible skip navigation links, was: good example

for

From: julian.rickards
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


>