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

Popular posts from this blog

ES6 : 5 Prevent Object Mutation

ES6: 1 Explore Differences Between the var and let Keywords

CSS Grid: Reduce Repetition Using the repeat Function