Horje
What is 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

Related Articles
What is HTML accesskey Attribute HTML Global Attributes
What is HTML class Attribute HTML Global Attributes
What is HTML contenteditable Attribute HTML Global Attributes
What is HTML data-* Attributes HTML Global Attributes
What is HTML dir Attribute HTML Global Attributes
What is HTML draggable Attribute HTML Global Attributes
What is HTML enterkeyhint Attribute HTML Global Attributes
What is HTML hidden Attribute HTML Global Attributes
What is HTML id Attribute HTML Global Attributes
What is HTML inert Attribute HTML Global Attributes
What is HTML inputmode Attribute HTML Global Attributes
What is HTML lang Attribute HTML Global Attributes
What is HTML popover Attribute HTML Global Attributes
What is HTML spellcheck Attribute HTML Global Attributes
What is HTML style Attribute HTML Global Attributes
What is HTML tabindex Attribute HTML Global Attributes
What is HTML title Attribute HTML Global Attributes
What is HTML translate Attribute HTML Global Attributes
What are the HTML Global Attributes HTML Global Attributes

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

Read Full:
HTML Global Attributes
Type:
Develop
Category:
Web Tutorial
Sub Category:
HTML Global Attributes
Uploaded by:
Admin
Views:
84


Reffered: https://www.w3schools.com/tags/ref_standardattributes.asp