Specifying Access Keys
Access keys are specified in HTML using the accesskey attribute. The value of an element’s accesskey attribute is the key the user will press (typically in combination with one or more other keys, as defined by the browser) in order to activate or focus that element. Though the accesskey attribute sets the key that can be pressed it does not automatically notify the user of the bound access key. One convention is for the page author to show the access key value by using the tag to underline the a letter in the link’s text corresponding to the accesskey assigned. For the link below a user would press Alt+H on Internet Explorer, Ctrl+H on a Mac (the command key can give undesired results) and ⇧ Shift+Esc+H on Opera to be directed to index.html.
Homeor to emphasize ‹H›:
Homealternatively, the following CSS can be used to indicate the character:
*:after {content:' '}Emphasize isn’t necessary, but can be useful to the user. It helps them identify which key to press to navigate to where they want to. Another possible way of displaying which accesskeys do what is to create a page with all the accesskeys displayed. Or the webmaster could do both. Another option for the end user is to install a user script such as FireFox Access Bar for GreaseMonkey.
Read more about this topic: Access Key
Famous quotes containing the words access and/or keys:
“Power, in Cases world, meant corporate power. The zaibatsus, the multinationals ..., had ... attained a kind of immortality. You couldnt kill a zaibatsu by assassinating a dozen key executives; there were others waiting to step up the ladder; assume the vacated position, access the vast banks of corporate memory.”
—William Gibson (b. 1948)
“McCoy: That sharks been following us ever since the surgeon died, waiting for the burial. Couldnt I have a musket to shoot it, sir?
Fletcher Christian: Take the deck, McCoy. Ill get the keys to the arms chest.
McCoy: Get two muskets, sir. Id like to shoot that shark on board.”
—Talbot Jennings (18961985)