KBD is for keyboard

kbd

The "kbd" element is for indicating text that is typed by the user.

Examples

Windows keyboard    Mac keyboard            

<<kbd Ctrl>> <<kbd ⌘ command>>
Ctrl ⌘ command

<<kbd Alt>> <<kbd ⌥ option>>
Alt ⌥ option

<<kbd Shift>> <<kbd ⇧ shift>>
Shift ⇧ shift

<<kbd Enter>> <<kbd return>>
Enter return

<<kbd Backspace>> <<kbd ⌫ delete>>
Backspace ⌫ delete

<<kbd Delete>> <<kbd ⌦ del>>
Delete ⌦ del

<<kbd ⦙⦙⊞ Win>>
⦙⦙⊞ Win
<<kbd ⌃ control>>
⌃ control
The kbd element with styling to look like keys

See also

code
The code element identifies a block of text as being computer code.
samp
The samp element is used to enclose text, generated by a computer program, when used within a longer sentence.
var
The var element is used to mark a variable.

0

semantax > term-mark > kbdKBD is for keyboard

🔗 🔎