What is the <kbd> element in HTML?
The <kbd> element in HTML can be used to display keyboard input.
Display
The text enclosed within <kbd> and </kbd> is displayed in the browser’s default monospace font.
Example
Use this tag to display “Ctrl+C” in the following way: Ctrl+C
Attributes
The <kbd> tag supports
The
<kbd>element can also be styled using CSS.
Code
The following example shows how the <kbd> tag is used.
Free Resources
Copyright ©2026 Educative, Inc. All rights reserved