HTML kbd Tag

HTML kbd Tag is used to define the keyboard input, voice input or any textual input from any other device. The content of kbd tag is usually rendered in monospace font.

Syntax of HTML kbd Tag

The Syntax of HTML kbd Tag is shown below, It has both starting tag and ending tag.

<kbd>Enter</kbd>

Usage of HTML kbd Tag

HTML kbd Tag is used for the keyboard input or keyboard keys like Enter key, Ctrl key etc. Most browsers display the text written inside kbd tag in monospace font.

Other than keyboard keys kbd tag is also used for other types of textual user input or voice input.

HTML kbd Tag is an inline element.

Example of HTML kbd Tag

Simple example of HTML kbd Tag is shown below.

<p>Please press <kbd>Ctrl</kbd> + <kbd>F5</kbd> to refresh the page.</p>

Output

Please press Ctrl + F5 to refresh the page.

In above example Ctrl and F5 are two keyboard keys. That is why we have put them inside the kbd tag.

Browser Support for HTML kbd Tag

HTML kbd Tag is supported by all major browsers including Safari and Internet Explorer.

Global Attributes Support in HTML kbd Tag

The HTML kbd Tag supports all Global Attributes.

Event Attributes Support in HTML kbd Tag

The HTML kbd Tag supports all Event Attributes.

HTML kbd Tag Video

Watch our video on HTML kbd Tag.

HTML Comment Tag HTML Doctype Tag HTML anchor Tag HTML abbr Tag HTML acronym Tag HTML address Tag HTML applet Tag HTML area Tag HTML article Tag HTML aside Tag HTML audio Tag HTML b Tag HTML base Tag HTML basefont Tag HTML bdi Tag HTML bdo Tag HTML big Tag HTML blockquote Tag HTML body Tag HTML br Tag HTML Button Tag HTML Canvas Tag HTML Caption Tag HTML Center Tag HTML Cite Tag HTML Code Tag HTML Col Tag HTML colgroup Tag HTML data Tag HTML datalist Tag HTML dd Tag HTML del Tag HTML details Tag HTML dfn Tag HTML dialog Tag HTML dir Tag HTML div Tag HTML dl Tag HTML dt Tag HTML em Tag HTML embed Tag HTML fieldset Tag HTML figcaption Tag HTML figure Tag HTML font Tag HTML footer Tag HTML form Tag HTML frame Tag HTML frameset Tag HTML Heading Tags HTML head Tag HTML header Tag HTML hr Tag HTML html Tag HTML i Tag HTML iframe Tag HTML img Tag HTML input Tag HTML ins Tag HTML kbd Tag HTML label Tag HTML legend Tag HTML li Tag HTML link Tag