HTML accesskey attribute

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

Example

<ul>
  <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>
 </ul>
Try </>

accesskey attribute values

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

accesskey attribute is applicable on all the html elements.



Was this article helpful?

 

Email:

Message:

Get the newsletter