
- HTML Tutorial
- HTML - Home
- HTML - Overview
- HTML - Basic Tags
- HTML - Elements
- HTML - Attributes
- HTML - Formatting
- HTML - Phrase Tags
- HTML - Meta Tags
- HTML - Comments
- HTML - Images
- HTML - Tables
- HTML - Lists
- HTML - Text Links
- HTML - Image Links
- HTML - Email Links
- HTML - Frames
- HTML - Iframes
- HTML - Blocks
- HTML - Backgrounds
- HTML - Colors
- HTML - Fonts
- HTML - Forms
- HTML - Embed Multimedia
- HTML - Marquees
- HTML - Header
- HTML - Style Sheet
- HTML - Javascript
- HTML - Layouts
- HTML References
- HTML - Tags Reference
- HTML - Attributes Reference
- HTML - Events Reference
- HTML - Fonts Reference
- HTML - ASCII Codes
- ASCII Table Lookup
- HTML - Color Names
- HTML - Entities
- HTML - Fonts Ref
- HTML - Events Ref
- MIME Media Types
- HTML - URL Encoding
- Language ISO Codes
- HTML - Character Encodings
- HTML - Deprecated Tags
HTML accesskey Attribute
The accesskey attribute in HTML is used to set a shortcut key to activate or focus on an element.
Following is the syntax−
<element accesskey="char">
Above, char is the shortcut key.
On Windows, set the access key for different browsers−
Web Browser | Windows OS |
---|---|
Safari | [Alt] + accesskey |
Chrome | [Alt] + accesskey |
Firefox | [Alt] [Shift] + accesskey |
Let us now see an example to implement the accesskey attribute on Google Chrome web browser on Windows−
Example
<!DOCTYPE html> <html> <body> <h2>Reference Links</h2> <a href="https://www.tutorialspoint.com/online_dev_tools.htm" accesskey="t">Tools</a><br> <a href="https://www.tutorialspoint.com/codingground.htm" accesskey="c">Online Compiler</a><br> <a href="https://www.tutorialspoint.com/whiteboard.htm" accesskey="w">Whiteboard</a><br> <p>Use <kbd>ALT </kbd> + <kbd>accesskey</kbd> on Chrome</p> </body> </html>
Output
- Related Articles
- HTML DOM accessKey Property
- HTML pattern Attribute
- HTML novalidate Attribute
- HTML maxlength Attribute
- HTML wrap Attribute
- HTML disabled Attribute
- HTML for Attribute
- HTML min Attribute
- HTML disabled Attribute
- HTML disabled Attribute
- HTML min Attribute
- HTML draggable Attribute
- HTML href Attribute
- HTML max Attribute
- HTML enctype Attribute

Advertisements