View Sidebar

Tip #4: Skip to Content Link – Jojo Esposa Jr.

This is another one of among the series of usable and accessible links. “Skip to Content“, sometimes called “Jump to Content” or “Skip to Navigation” is a tool used to bypass all the top or side links and goes directly to the main content title. This feature is supported by Web Accessibility Initiative of W3C and is one of the recommendations of PWAG Maturity Stage 2.

A blind person or anyone using keyboard to navigate your website must pass through a series of tabs and enter keys first before they can go directly to the content. This is very cumbersome and a waste of time. To do away with this, put a “Skip to content” link on the first line of your site preferably above your website logo. Once you press the enter key, the cursor bypasses other links and goes directly to the content title or the first letter of the main content. You can use an ANCHOR tag to create these links.

How do I put a Skip to Content link to my page?

For example:

  1. At the topmost part of your website probably below the ‹body› tag, type Skip to Content. Then, add a hyperlink enclosing it.

    ‹a href=””›Skip to Content‹/a›

  2. Inside the href, assign a link name that has never been used. In our example, let’s use skiplink. Put a # sign before the name to show that it refers to a link.

    ‹a href=”#skiplink”›Skip to Content‹/a›

  3. Now go to the first text of your content. It might be the title of a news item or the heading of the whole content. In our example, let’s use the Latest News: title.
  4. Now, let us add an a name anchor tag. We must use the exact same name that we used on the href tag that we defined earlier. Otherwise, it will not point to this link. You also need to add an id to uniquely identify this name.

    ‹h1›‹a name=”skiplink” id=”skiplink1″›‹/a›Latest News:‹/h1›

  5. Save your work. Open the web page in your browser. Click on the Skip to Content link. Does your screen jump directly to the Latest News content? If it does then it worked. Don’t forget to put them on all of your pages.
  6. If you are familiar with Cascading Style Sheets, you may also add some enhancements here. If you feel that the Skip to Content link clutter or is unfit to your overall design, then you can simply hide it using CSS. However, you must also consider those sighted people who cannot use a mouse. Hiding it from them is not advisable since they do not know that the link exists.
References:
  1. PWAG Maturity Stage 2 – https://www.pwag.org/designrecommendations.htm
  2. W3C WAI Recommendation – http://www.w3.org/TR/WAI-WEBCONTENT/wai-pageauth.html#tech-group-links
  3. Accessites: Skip Link Pros and Cons – http://accessites.org/site/2006/05/skip-link-pros-and-cons/
  4. Useful are not always Usable – http://www.bohmann.dk/articles/useful_features_are_not_always_usable.html

Share this:
Share this page via Email Share this page via Stumble Upon Share this page via Digg this Share this page via Facebook Share this page via Twitter