HTML · Global attributes

accesskey

Defines a keyboard shortcut for an element. Shortcuts vary by browser and platform, so always show them in the UI.

Syntax
accesskey="k"

Example

Try it

More in this group

aria-atomic aria-controls aria-current aria-describedby aria-disabled aria-expanded aria-hidden aria-invalid

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course