125 of 133 menu

The kbd tag

The kbd tag is used to denote text that is typed on the keyboard or to label pressed buttons.

Text placed inside the kbd tag will become by default monospaced (this means that the length of all letters will be the same). This behavior can be changed using the CSS property font-family.

Example

Let's take the command that should be typed on the keyboard and put it in the kbd tag:

To open the search window, click <kbd>Ctrl+F</kbd>.

:

See also

  • tag samp,
    intended for the result of programs
  • tag code,
    in which it is customary to enclose program code
byenru