HTML <kbd> tag
HTML <kbd> tag : Definition
• The <kbd> tag specifies text as user input from the keyboard for example: Enter or Ctrl keys. The Browsers will generally render the text found within the <kbd> tag in the default monospace font.
• The <kbd> tag requires a starting and ending tag.
Html <kbd> tag example
<!DOCTYPE html> <html> <head> <title>The <kbd> element example</title> </head> <body> <h1>The kbd element example</h1> <p>Press <kbd>Enter</kbd> to continue</p> </body> </html>
Output:
The kbd element example
Press Enter to continue