Computer >> Computer tutorials >  >> Programming >> HTML

How to use the <kbd> tag for keyboard input formatting in HTML?


<kbd> tag is a phrase tag.It is used to identify text that represents user keyboard input. Most browsers display the <kbd> element in a monospace font.

This tag can be used in html document as:

<html>
<body>
<p>Two special keys in keyboard are:<kbd>ctrl</kbd>, <kbd>alt</kbd>.</p>
</body>
</html>