accesskey Attribute - HTML CSS HTML Global Attribute

HTML CSS examples for HTML Global Attribute:accesskey

Description

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

Two hyperlinks with specified accesskeys:

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>

<a href="http://java2s.com" accesskey="h">HTML tutorial</a><br>
<a href="http://java2s.com" accesskey="c">CSS tutorial</a>

</body><!-- ww  w. j a va 2s. c o  m-->
</html>

Related Tutorials