HTML kbd Tag

HTML<kbd>Tag: The <HTML> kbd tag specifies a keyboard input. It is a phrase tag. This tag text enclosed by <kbd> tag is typically displayed in the browser’s default monospace font.

List of all phrase tag:

  • <em>: This tag is used to emphasize the text.
  • <strong>: This tag is used to define an important text.
  • <code>: This tag enclose the computer code.
  • <samp>: It defines a sample output text from a computer program.
  • <kbd>: It defines the text of keyboard input.
  • <var>: It defines the variable text.


The HTML <kbd> tag supports both Global and Event attributes.

Syntax: <kbd>Text</kbd>

Browser compatibility

The HTML kbd tag is supported by different types of browsers.

  • Chrome
  • Firefox
  • Opera
  • Safari
  • Internet Explorer


<!DOCTYPE html>
<kbd>This is the keyboard input</kbd><br>

Output:  This is the keyboard input

Tags supported by <code> tag

Tag Description
em Renders as emphasized text
strong Specifies the important text
code Defines a piece of computer code
samp Specifies sample output from a computer program
kbd Specifies keyboard input
var Specifies a variable