accesskey
Accesskey is an HTML attribute that defines a keyboard shortcut to activate or focus the element it appears on. It is a global attribute, meaning it can be used on most HTML elements, including links, buttons, inputs, and other interactive controls. The value is typically a single character or mnemonic that the user’s system or browser maps to a shortcut.
How it works depends on the browser and operating system. When the user presses the browser or
Practical considerations and best practices include using access keys sparingly to avoid conflicts with built-in shortcuts
Example: <a href="https://example.com" accesskey="x" title="Example (keyboard: Alt+X)">Example</a>.
Support and compatibility vary by browser and device; while most desktop browsers support accesskey, mobile support