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





Category:
Web Tutorial
Sub Category:
HTML Computer Code
Uploaded by:
Admin


Read Article
https://develop.horje.com/learn/1434/reference