View Single Post
  #6 (permalink)  
Old 01-09-2005, 07:54 PM
Webnauts's Avatar
Webnauts Webnauts is offline
WebProWorld 1,000+ Club
 

Join Date: Aug 2003
Location: Worldwide
Posts: 7,384
Webnauts RepRank 3Webnauts RepRank 3
Default

Providing links that allow the user to skip directly to content, bypassing the navigation, enhances the accessibility of your web. This is recommended for blind or visually impaired users, people who use screen readers, and also for text-browsers, mobile phones and PDAs (Personal Digital Assistants). These links are common on most US, UK, Irish, and other government websites, as well as many universities and private organizations.

From the accessibility and usability point of view, it is recommended that you make such links visible.

Why?

In his article titled “Providing Skip Links,” Frank Gayne of infocentre.frontend.com explains: "Skip links would be useful for people who cannot easily use a mouse. Many of these people depend on tabbing in order to make progress through an interface and might appreciate a skip links feature to lighten the amount of work they have to do. If there is no visible focus to let these people know they have hit a link, then this useful feature is lost to them."

How can you build such links?

Immediately after the logo of your web site, insert the skip link:

Skip over navigation

After this is done, do one of the following, depending on the MarkUp Language you are using:

1. If you're using any variant of HTML 4, add this just before your main content:

<a name="content"></a>


2. If you are using any variant of XHTML 1.0, add this just before your main content:

<a name="content" id="content"></a>


3. If you are using XHTML 1.1, add this just before your main content:

<a id="startcontent"></a>
- These variations are necessary to insure that you have valid code.


Does the link have to go after the logo?

Many web sites have the "Skip Navigation" or "Skip to content" links before the logo of the page, but a logo is the precursor of a web page. It lets the user know what website he/she is on. For example, if a "Screen Reader" user clicks an internal link on your page, your logo's alternate text attribute tells the user that he/she has not yet left your website. If the Skip Navigation link is before this logo, then the user does not know immediately which website he/she is on.

In many occasions, web site developers or their clients do not wish to have the “Skip navigation” or “Skip to content” link visible, with the excuse that it does not fit in their design. In this case they might use a technique wrapping the accessibility text or links in an HTML div setting it to display: none or visibility: hidden.

The problem with this technique is that it does not always work as expected. Some screen readers do not speak material that is marked display: none or visibility hidden, and others depend on how the style is specified.


To solve this problem, you could make them invisible with the technique described below.

1. Create a transparent graphic 1X1 pixels, and name it "spacer.gif"

2. At the top of you page add:

[img]spacer.gif[/img]

3. At the begining of your content add:

<a name="content" id="content"></a>

Important: If you are using XHTML 1.1, then you should insert the following at the beginning of your content:

<a id="content"></a>

instead of

<a name="content" id="content"></a> described above.

- otherwise your code will not validate.

Do your web pages have Skip navigation or to content links? If not, it should be time to build them...


For further reading:

Skipping Over Navigation Links: http://diveintoaccessibility.org/day...ion_links.html
Skip to Main Content Link: http://www.washington.edu/accessit/AU/tutorial/ins.html
Reply With Quote