HTML: The Markup Language

kbduser input # T

The kbd element represents user input.

Permitted content #

Permitted attributes #

Tag omission #

A kbd element must have both a start tag and an end tag.

Permitted parent elements #

any element that can contain phrasing elements

Details #

The kbd element typically represents keyboard input, though it may also represent other input, such as voice commands.

DOM interface #

Uses HTMLElement.

Typical default display properties #

kbd {
font-family: monospace; }