|
AccesskeyAttribute
The accesskey attribute lets you assign a keyboard shortcut to a hyperlink, form control, or other element.
You are here: Home > HTML Reference > Elements > <a> element > accesskey attribute UsageThe behavior of accesskeys differs widely between browsers.
ValuesAny single character typable with a keyboard. Case-insensitive. There is no way to specify function keys or other "virtual" keys like Escape or Backspace. Since some browsers require the Shift key, you should not assign accesskeys that rely on typing shift (such as "!", which is Shift+"1" on many keyboards). ElementsThe accesskey attribute was originally designed for hyperlinks and form controls like input and select. In modern browsers, it works on any element that defines a tabindex attribute. Browser compatibilityCompatibility table legend
Further reading |
Sign in to add a comment