kbd Tag

kbd Tag

It is used to indicate the keyboard keys on a web page like instruction for keys to press for accessing a feature. Text placed between its opening and closing tags is shown in monospaced font as shown

HTML code

<p>Press <kbd>alt</kbd> and <kbd>F4</kbd> to close window.</p>

Browser output

The kbd Tag

code Tag for Code
var Tag for Variables

Get industry recognized certification – Contact us

keyboard_arrow_up
Open chat
Need help?
Hello 👋
Can we help you?