Include keyboard text in HTML


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>

Updated on: 03-Mar-2020

154 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements