HTML <kbd> Tag (original) (raw)
Last Updated : 28 May, 2026
The tag in HTML is used to represent keyboard input or keyboard shortcuts. It displays text in a way that indicates the user should press a key or combination of keys.
- tag is used to show keyboard input in HTML.
- It is commonly used for shortcut keys and commands.
- Browsers usually display text in a monospace font style.
**Syntax:
text content ...
**List of all phrase tag:
- ****:** is used to emphasize the text.
- ****:** is used to define an important text.
- ****
:**encloses the computer code. - ****:** defines a sample output text from a computer program.
- ****:** defines the text of keyboard input.
- ****:** defines the variable text.
**Example 1: This example describe the use of tag.
html `
GeeksforGeeks
<h3>HTML kbd Tag</h3>
<p>
Open a new window using the
keyboard shortcut
<kbd>Ctrl</kbd> + <kbd>N</kbd>
</p>
`
**Example 2: This example using tag with some CSS styles.
HTML `
GeeksforGeeks
<h2>HTML kbd Tag</h2>
<p>Open a new window using the
keyboard shortcut
<kbd>Ctrl</kbd>+<kbd>N</kbd>
</p>
`