: The KBD Element
Last updated: 2026-09-12
<kbd>The KBD Element
Marks text the user is expected to enter via keyboard, often used in docs or shortcut hints.
| Category | Formatting |
|---|---|
| Content Model | Phrasing content |
| Allowed Parents | Any element that accepts phrasing content |
| Content Tag | Yes — requires closing </kbd> tag |
| Status | Standard |
📝 Syntax
<kbd>keyboard input</kbd>
▶ Example
Edit the code below and see the live result in the playground:
🌐 Browser Support
| Browser | |||||
|---|---|---|---|---|---|
| <kbd> | ✓ v1 | ✓ v12 | ✓ v1 | ✓ v1 | ✓ v1 |
| Supported in all major browsers | |||||
Tip: For key combinations, wrap each key in its own <kbd> and separate with + for clarity.