Open In App

How to define keyboard input in HTML5 ?

Last Updated : 21 Oct, 2020
Comments
Improve
Suggest changes
1 Like
Like
Report
The phrase tag is used to define the keyboard input. The text enclosed by <kbd> tag is typically displayed in the browser’s default monospace font. In this article, we define the keyboard input by using various types of tags like <kbd>, <code>, <em>, <var>, and <samp>. Syntax:
<kbd> Contents... </kbd> 
Example 1:
Output: Example 2:
Output: Supported Browsers:
  • Google Chrome
  • Internet Explorer
  • Firefox
  • Opera
  • Safari

Next Article

Similar Reads