HTML - Accesskey Attribute (keyboard shortcut)

> (World Wide) Web - (W3|WWW) > HyperText markup Language (HTML)

1 - About

All HTML elements may have the accesskey content attribute set.

The accesskey attribute's value is used by the user agent as a guide for creating a keyboard shortcut that:

  • activates
  • or focuses

the element.

Advertising

3 - Syntax

The value must be:

  • an ordered set of unique space-separated tokens
  • that are case-sensitive,
  • each of which must be exactly one Unicode code point in length.

4 - Example

  • Two access key defined:
accesskey="s 0"
  • One
accesskey="A"

5 - Assigned access key by Browsers

  • Firefox: Alt + Shift + Key
  • Others: Alt + Key

6 - Documentation / Reference

Advertising
web/html/accesskey.txt · Last modified: 2019/02/09 11:29 by gerardnico