Site icon Tutorial

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

Exit mobile version