Horje

How to add HTML accesskey Attribute

Two hyperlinks with specified accesskeys.
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<a href="https://horje.com/sub/31/196/html" accesskey="h">HTML tutorial</a><br>
<a href="https://horje.com/sub/31/364/css" accesskey="c">CSS tutorial</a>

<p>The accesskey attribute specifies a shortcut key to activate/focus an element.</p>
<p><strong>Note:</strong> The shortcut is varying in different browsers:</p>
<ul>
    <li>Edge, IE, Chrome, Safari, Opera 15+: [ALT] + <em>accesskey</em></li>
    <li>Opera prior version 15: [SHIFT] [ESC] + <em>accesskey</em></li>
    <li>Firefox: [ALT] [SHIFT] + <em>accesskey</em></li>
</ul>

</body>
</html>

Output should be:

How to add HTML accesskey Attribute




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Attribute
Uploaded by:
Admin