<input accesskey="">

Disclosure: Your support helps keep the site running! We earn a referral fee for some of the services we recommend on this page. Learn more
Attribute of
How To Use Input To Create Form Fields In HTML: Easy Tutorial
What does <input accesskey=""> do?
Defines a keyboard shortcut for the element.

Code Example

<input accesskey="h" type="Submit" onclick="alert('You clicked the submit button.')" value="Click Me">

<br><br>
Try:<br>
<kbd>ctrl</kbd> + <kbd>alt</kbd> + <kbd>H</kbd> 
<br><b>OR</b><br>
<kbd>alt</kbd> + <kbd>H</kbd> 
<br><b>OR</b><br>
<kbd>alt</kbd> + <kbd>shift</kbd> + <kbd>H</kbd>


Try:
ctrl + alt + H
OR
alt + H
OR
alt + shift + H

Global Attribute

In earlier versions of HTML, only a handful of elements could take advantage of the accesskey attribute. As of HTML5, accesskey is a global attribute and can be used on any element.

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

Browser Support for accesskey

iefirefoxchromeedgesafariopera
AllAllAllAllAllAll