CSS HOW-TOCSS TemplatesLink listContactSitemap

12 Accesskeys

Standards-compliant XHTML and CSS, semantic markup and access keys make for an accessible website. Access keys allow you to navigate a site using your keyboard.

This sites uses access keys as recommended by the W3C. You can find more information on access keys at W3C Access key recommendations.

Accesskey Standards

Over the years, a standard has been established in the english-speaking world.
The list below is from the UK Government Accesskey Standard:
http://www.cabinetoffice.gov.uk/e-government/resources/handbook/html/2-4.asp#2.4.4

[S] Skip navigation
[1] Home page
[2] What's new
[3] Sitemap
[4] Search
[5] Frequently Asked Questions (FAQ)
[6] Help
[7] Complaints procedure
[8] Terms and conditions
[9] Feedback form
[0] Access key details

Accesskeys on this page

[0] Accesskeys
[1] Intensivstation (HOME)
[2] Navigation
[3] Sitemap
[4] search
[9] Contact

Accesskeys in various browsers


XHTML for Accesskeys

<div id="accesskeys">
<ul>
<li><a href="/accesskeys/" accesskey="0">Access keys</a></li>
<li><a href="/" accesskey="1">Intensivstation (HOME)</a></li>
<li><a href="#topnavi" accesskey="2">Navigation</a></li>
<li><a href="#content" accesskey="3">Contents</a></li>
<li><a href="/contact/" accesskey="9">Contact</a></li>
</ul>
</div>

CSS for Accesskeys

#accesskeys{
margin: 0px;
padding: 0px;
height: 1px;
overflow: hidden;
}

Access key considerations

Standardised access keys can add value to a site. If they require additional learning by the user, they don't make sense though. Currently, access keys are controversial among experts and users. Already otherwise used key combinations often make access keys more of a problem than a solution.
The table at Aus der Tabelle bei www.einfach-fuer-alle.de demonstrates these various clashes in different browsers.
I will use a Accesskey [1] link on the home page of future projects. I'l also make the call project by project, depending on whether it makes sense.

Sample how to display access keys in links

further Articles