Global Attributes
HTML accesskey attribute
Suggests keyboard shortcut characters. The actual modifier keys and shortcut availability depend on the browser and operating system. Avoid conflicting with assistive technology shortcuts. Applicability: global HTML attribute, subject to element-specific restrictions and browser support.
Formal Syntax & Structure
html syntaxhtml
accesskey="s"Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| accesskey | space-separated characters | Suggests keyboard shortcut characters. The actual modifier keys and shortcut availability depend on the browser and operating system. Avoid conflicting with assistive technology shortcuts. |
Working Example
Example Snippethtml
<button type="button" accesskey="s">Save</button>Browser Compatibility
Minimum supported versions across modern rendering engines
Chrome
1
Yes
Edge
12
Yes
Firefox
1
Yes
Safari
≤4
Yes
Checked desktop BCD snapshot: global accesskey attribute. Versions denote the recorded start of support (≤ means at least that early), not a guarantee of all behavior. Unresolved mirror and preview rows omitted. Shortcut selection depends on browser and operating system.
HTML Living Standard