HTML <kbd> Tag

HTML Sep 15, 2022

The kbd tag allows you to wrap your keyboard commands in style. It is great to use for documentation sites. You can also use this tag for other user inputs such as voice input or text entry devices.

For example, <kbd>npm install example</kbd> would look like this:

npm install example

And that's it!

Tags