Javatpoint Logo
Javatpoint Logo

HTML <kbd> tag

HTML <kbd> tag indicates the part of inline text which represents the user keyboard input, voice input, or any other text entry device input.

The <kbd> text renders on the browser in default monospace font. It is used when a document needs to display the text which user should enter exactly from his keyboard.

Note: We can also use CSS properties to get the same display effect as <kbd> tag.

Syntax

Following are some specifications about the HTML <kbd> tag

Display Inline
Start tag/End tag Both Start and End tag
Usage Textual

Example

Test it Now

Output:

HTML kbd tag

Attribute

Tag-specific attribute

The <kbd> tag does not include any specific attribute.

Global attribute

The <kbd> tag supports the global attributes in HTML

Event attribute

The <kbd> tag supports the event attributes in HTML

Supporting Browsers

Elementchrome browser Chromeie browser IEfirefox browser Firefoxopera browser Operasafari browser Safari
<kbd>YesYesYesYesYes
Next TopicHTML label Tag





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA