HTML accesskey attribute

HTML accesskey attribute allows the author to make keyboard shortcut key to activate or focus an element.

  <li><a href="home.php" accesskey="A"> Home </a></li>
  <li><a href="TV.php" accesskey="B"> TV </a></li>
  <li><a href="recipies.php" accesskey="C"> Recipies </a></li>
  <li><a href="faqs.php" accesskey="E"> Faqs </a></li>

Attribute values

All possible values of accesskey attribute

The value of accesskey attribute is the combination of alphabets with other keys such as Alt, Shift, Ctrl or simple alphabets.

Tip: To navigate through keyboard shortcuts, press Alt before pressing the acesskeys.

Related Tags

The tags that support accesskey attribute

accesskey attribute is applicable to all the html elements.

Was this article helpful?