accesskey HTML global attribute

The accesskey global attribute provides a hint for generating a keyboard shortcut for the current element. The attribute value must consist of a single printable character (which includes accented and other characters that can be generated by the keyboard).

Try it

<p>If you need to relax, press the <b>S</b>tress reliever!</p>
<button accesskey="s">Stress reliever</button>
b {
  text-decoration: underline;
}

The way to activate the accesskey depends on the browser and its platform:

WindowsLinuxMac
FirefoxAlt + Shift + keyControl + Option + key or Control + Alt + key
MS EdgeAlt + keyControl + Option + key
or Control + Option + Shift + key
Control + Option + key
Google Chrome
Safarin/aControl + Option + key
OperaAlt + keyAlt + Shift + keyControl + Alt + key

Accessibility concerns

There are numerous concerns with the accesskey attribute:

Because of these issues, it is generally advised not to use accesskeys for most general-purpose websites and web apps.

Specifications

See also