Applied Accessibility -13 Make Links Navigatable with HTML Access Keys
Make Links Navigatable with HTML Access Keys
HTML offers the
accesskey attribute to
specify a shortcut key to activate or bring focus to an element. This
can make navigation more efficient for keyboard-only users.
HTML5
allows this attribute to be used on any element, but it's particularly
useful when it's used with interactive ones. This includes links,
buttons, and form controls.
Here's an example:
<button accesskey="b">Important Button</button>
Note: The shortcut is varying in different browsers:
- IE, Chrome, Safari, Opera 15+: [ALT] + accesskey
- Opera prior version 15: [SHIFT] [ESC] + accesskey
- Firefox: [ALT] [SHIFT] + accesskey
notice how button become highlighted
source
Comments
Post a Comment