Include keyboard text in HTML

HTMLWeb DevelopmentFront End Technology

Use the <kbd> tag in HTML to display keyboard text. The HTML <kbd> tag defines keyboard input. It is a phrase tag.

Example

You can try to run the following code to implement <kbd> tag −

<!DOCTYPE html>
<html>
   <head>
      <title>HTML kbd Tag</title>
   </head>
   <body>
      <p>Open previously closed tab using
         <kbd>Ctrl</kbd>+
         <kbd>Shift</kbd>+
         <kbd>T</kbd>
   </body>
</html>
raja
Published on 14-Mar-2018 11:31:44
Advertisements