Horje
HTML accesskey Attribute

Definition and Usage

The accesskey attribute specifies a shortcut key to activate/focus an element.

The accesskey attribute value must be a single character (a letter or a digit).

Warning

Using accesskeys is difficult because they may conflict with other key standards in the browser.

To avoid this problem, most browsers will use accesskeys only if pressed together with the Alt key.

Concerns

Adapting accesskeys to all international languages are difficult.

The accesskey value may not be present on all keyboards.

Because of these concerns, it is advised not to use accesskeys.


Browser Support


How to add Two hyperlinks with specified accesskeys - HTML Global Attributes

The accesskey attribute specifies a shortcut key to activate/focus an element.

Note: The shortcut is varying in different browsers:

index.html
Example: HTML
<a href="https://horje.com" accesskey="h">HTML tutorial</a><br>
<a href="https://horje.com/learn/1012/what-is-html-accesskey-attribute" accesskey="c">CSS tutorial</a>

Output should be:

How to add Two hyperlinks with specified accesskeys - HTML Global Attributes




html accesskey attribute in html global attributes

Type:
Develop
Category:
Web Tutorial
Sub Category:
HTML Global Attributes
Uploaded by:
Admin


Read Article
https://horje.com/learn/1434/reference