Above, char is the shortcut key. On Windows, set access keys for different browsers − Web browser Windows OS Safari [Alt] + shortcut key Chrome [Alt] + shortcut key Firefox [Alt] [Shift] + access key Now let’s see an example on Windows Implementing the accesskey attribute on the Google Chrome web browser - Example Live Demo &"/> Above, char is the shortcut key. On Windows, set access keys for different browsers − Web browser Windows OS Safari [Alt] + shortcut key Chrome [Alt] + shortcut key Firefox [Alt] [Shift] + access key Now let’s see an example on Windows Implementing the accesskey attribute on the Google Chrome web browser - Example Live Demo &">
Home > Article > Web Front-end > "HTML accesskey attribute"
The accesskey attribute in HTML is used to set the shortcut key for activating or focusing elements.
The following is the syntax -
<element accesskey="char">
Above, char is the shortcut key.
On Windows, set access keys for different browsers −
Web browser | Windows operating system | Safari | [Alt] Shortcut key |
---|---|
Chrome | [Alt] Shortcut key |
Firefox | [Alt] [Shift] accesskey |
Now let’s see an example on Windows Implementing the accesskey attribute on the Google Chrome web browser -
Real-time demonstration
<!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>
The above is the detailed content of "HTML accesskey attribute". For more information, please follow other related articles on the PHP Chinese website!