Two hyperlinks with specified accesskeys:
<a href="https://www.w3schools.com/html/" accesskey="h">HTML</a><br>
<a href="https://www.w3schools.com/css/" accesskey="c">CSS</a>
The accesskey
attribute specifies a shortcut key to activate/focus an element.
The accesskey
attribute value must be a single character (a letter or a digit).
Using accesskeys is difficult because they may conflict with other key standards in the browser.
To avoid this problem, most browsers will use accesskeys only if pressed together with the Alt key.
ConcernsAdapting accesskeys to all international languages are difficult.
The accesskey value may not be present on all keyboards.
Because of these concerns, it is advised not to use accesskeys.
Browser Support Attribute accesskey Yes Yes Yes Yes Yes Syntax<element accesskey="character">
Attribute Values Value Description character A single character that specifies the shortcut key to activate/focus the element Related PagesHTML Tutorial: HTML Attributes
HTML DOM reference: accessKey Property
Track your progress - it's free!
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4