HTML accesskey Global Attribute

Description

The global attribute accesskey defines a key that activates an element or puts focus on it.

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

Browser Windows Linux Mac
Chrome [alt] + accesskey [alt] + accesskey [control] + [alt] + accesskey
Firefox [control] + [shift] + accesskey [control] + [shift] + accesskey [control] + [alt] + accesskey
Explorer [alt] + accesskey N/A -
Edge [alt] + accesskey N/A -
Opera 15 > [alt] + accesskey [alt] + accesskey [control] + [alt] + accesskey
Opera 12.1 < [shift] + [esc] + accesskey [shift] + [esc] + accesskey [control] + [alt] + accesskey
Safari [alt] + accesskey N/A [control] + [alt] + accesskey

Syntax

<element accesskey="character">

Values

  • characterAny character between A - Z.

Example

To follow the link, press <strong>[alt]</strong> + <strong>h</strong> (add <strong>[shift]</strong> if you are using Firefox):
<br>
<br>
<a href="https://www.cssportal.com" accesskey="h">CSS Portal Homepage</a>
<br>
<br>
Note: As this is an iframe, the page will appear here.

Browser Support

Desktop
Explorer Edge Chrome Firefox Opera Safari
YesYesYesYesYesYes
Tablets / Mobile
Android Chrome Firefox Opera Safari Samsung
YesYesYesYesYesYes