Using code elements when you should be using kbd?

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

ShortBeginnerUI2 min

About this video

A short Short explaining why the semantic kbd element suits keyboard inputs better than code elements or markdown backticks, with the bonus that kbd can be styled without classes.

What you’ll learn

  • Use the kbd element to mark up keyboard inputs in HTML