HTML <kbd> Tag

Description

The <kbd> HTML element is used to indicate the text that is typed on the keyboard or for the name of the keys. Browsers usually mark the text in the <kbd> container in a monospace font.

Properties

Permitted Parents
Any element that accepts phrasing content
Content
Inline and text
Start/End Tags
Start tag: required, End tag: required

Example

Type <kbd>https://www.cssportal.net</kbd> into your browser address bar.

Attributes

None

Global Attributes

The <kbd> tag also supports the Global Attributes in HTML5

Event Attributes

The <kbd> tag also supports the Event Attributes in HTML5

Browser Support

Desktop
Explorer Edge Chrome Firefox Opera Safari
YesYesYes1YesYes
Tablets / Mobile
Android Chrome Firefox Opera Safari Samsung
YesYes4YesYesYes