HTML Global accesskey Attribute
Example
<a href="https://www.google.com" accesskey="g">Google</a><br>
<a href="https://www.duckduckgo.com" accesskey="d">Duckduckgo</a>
Meaning
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
Key | Binding |
---|---|
F | File menu |
E | Edit menu |
V | View menu |
G | Widgets menu (Opera), older Mozilla Go menu |
I | History menu (Safari) |
B | Bookmarks menu (Mozilla, Safari) |
A | Favorites menu (Internet Explorer) |
T | Tools or Tasks menu |
S | History or Search menu depending on browser |
W | Window menu (Safari and older Mozilla) |
A | Favorites menu (Internet Explorer only) |
H | Help 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
Status
Attribute Values
Value | Description |
---|---|
character | Specifies a single character that the shortcut key to activate/focus the element. |
autocapitalize