docs.rodeo

MDN Web Docs mirror

accesskey

{{HTMLSidebar("Global_attributes")}} 

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).

{{EmbedInteractiveExample("pages/tabbed/attribute-accesskey.html","tabbed-shorter")}} 

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

Windows Linux Mac
Firefox Alt + Shift + key Control + Option + key or Control + Alt + key
MS Edge Alt + key Control + Option + key
or Control + Option + Shift + key
Control + Option + key
Google Chrome
Safari n/a Control + Option + key
Opera Alt + key Control + 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

{{Specifications}} 

Browser compatibility

{{Compat}} 

See also

In this article

View on MDN