HTML Global accesskey Attribute

❮ Previous Global Attributes Next ❯


<a href="" accesskey="g">Google</a><br>
<a href="" accesskey="d">Duckduckgo</a>


The accesskey attribute specifies a keyboard navigation accelerator for the element.

Note: If access keys are employed, Web page authors are cautioned to be aware of predefined key bindings in the browsing environment

Browser Reserved Accelerator Keys

FFile menu
EEdit menu
VView menu
GWidgets menu (Opera), older Mozilla Go menu
IHistory menu (Safari)
BBookmarks menu (Mozilla, Safari)
AFavorites menu (Internet Explorer)
TTools or Tasks menu
SHistory or Search menu depending on browser
WWindow menu (Safari and older Mozilla)
AFavorites menu (Internet Explorer only)
HHelp menu

The shortcut key element is varying in different browsers:

Browser Mac Linux Windows
Chrome [Control] + [Alt] +accesskey [Alt] +accesskey [Alt] +accesskey
Edge [Control] + [Alt] +accesskey N/A [Alt] +accesskey
Firefox [Control] + [Alt] +accesskey [Alt] + [Shift] +accesskey [Alt] + [Shift] +accesskey
Internet Explorer N/A N/A [Alt] +accesskey
Opera 15+ [Control] + [Alt] +accesskey [Alt] + accesskey [Alt] + accesskey
Safari [Control] + [Alt] +accesskey N/A N/A

Standard Syntax

<element accesskey="character">

Browser Support


Attribute Values

Value Description
character Specifies a single character that the shortcut key to activate/focus the element.
❮ Previous Global Attributes Next ❯