Menu Home

kbd

osbo.com | HTML | Elements | kbd

The kbd HTML element represents user input (typically keyboard input, although it may also be used to represent other input, such as voice commands).

Syntax

HTML

<kbd attribute-name="attribute-value"></kbd>

Attributes

Global

CSS

kbd {
    font-family: monospace;
}

Examples

CSS

Web Hypertext Application Technology Working Group (WHATWG)