<button accesskey=””>

Attribute of
<button> HTML Tag
What does <button accesskey=""> do?
Defines an keyboard shortcut for the button. As of HTML5, this is a global attribute that can be used on any element.

Code Example

<button accesskey="h" onclick="alert('You clicked the button.')">First, click me and see what happens.</button>

<kbd>ctrl</kbd> + <kbd>alt</kbd> + <kbd>H</kbd> 
<kbd>alt</kbd> + <kbd>H</kbd> 
<kbd>alt</kbd> + <kbd>shift</kbd> + <kbd>H</kbd>

ctrl + alt + H
alt + H
alt + shift + H

The [accesskey] is actually a global attribute, and can be used on any element.

Adam is a technical writer who specializes in developer documentation and tutorials.