Horje
How to create HTML <kbd> For Keyboard Input

The HTML <kbd> element is used to define keyboard input. The content inside is displayed in the browser's default monospace font.


Example of HTML <kbd> For Keyboard Input

Define some text as keyboard input in a document:
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h2>The kbd Element</h2>

<p>The kbd element is used to define keyboard input:</p>

<p>Save the document by pressing <kbd>Ctrl + S</kbd></p>

</body>
</html>

Output should be:

Example of HTML <kbd> For Keyboard Input





Related Articles
What is HTML Computer Code HTML Computer Code
How to create HTML <kbd> For Keyboard Input HTML Computer Code
How to create HTML <samp> For Program Output HTML Computer Code
How to create HTML <code> For Computer Code HTML Computer Code
How to create HTML <code> For Computer Code Part - 2 HTML Computer Code
How to create HTML <var> For Variables HTML Computer Code

Single Articles
Example of HTML <kbd> For Keyboard InputHTML Computer Code

Read Full:
HTML Computer Code
Category:
Web Tutorial
Sub Category:
HTML Computer Code
Uploaded:
1 year ago
Uploaded by:
Admin
Views:
77


Reffered: https://www.w3schools.com/html/tryit.asp?filename=tryhtml_formatting_kbd

Share on: