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.

**Syntax:

text content ...

**List of all phrase tag:

**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>

`