Home Accessibility Keyboard Navigation Keyboard Shortcuts With Accesskey   |   Search MS Office A-Z   |   Search Web Pages/ Design A-Z

Keyboard Shortcuts With Accesskey

Some of your visitors always use their keyboards for navigation. Use the Accesskey attribute to create keyboard shortcuts.

Visitors can select an option by holding down the ALT key and pressing whatever key you have defined for that option.

The syntax is simple. Here are a few examples:

<a href="http://www.netmechanic.com/news" 
  accesskey=w>NetMechanic newsletters (Alt-W)</a>

ZIP Code:  <input type="text" name="zip" 
  accesskey=z size=5>  (Alt-Z)
  
<input type="submit" accesskey=s>
    (Alt-S to submit form)

ACCESSKEY is a valid attribute for many HTML tags, including:

  • A
  • Area
  • Input
  • Button
  • Textarea
  • Div
  • Label
  • Legend
  • Caption