WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML <kbd> Tag


Example

Format text in a document:

<kbd>Keyboard input</kbd>
Try it yourself »

Definition and Usage

The <kbd> tag is a phrase tag. It defines keyboard input.

Tip: This tag is not deprecated, but it is possible to achieve richer effect with CSS.

All phrase tags:

tag description
<em> Rendered as emphasized text.
<strong> Defines important text.
<dfn> Define a definition item.
<code> Defines computer code text.
<samp> Defines sample text.
<kbd> Defines keyboard text. It indicates that the text was typed from the keyboard. It is often used in computer-related documents or manuals.
<var> Define variables. You can use this tag with <pre> and <code> Labels work together.

Browser Support

Element
<kbd> Yes Yes Yes Yes Yes Yes

Differences Between HTML 4.01 and HTML5

NONE.