We can also say that the Kbd Tag <kbd> is used to indicate a text which is supposed to be entered by the user.
The Kbd tag <kbd> is a closed tag and needs to be closed via closing kbd HMTL tag </kbd>.
Syntax of HTML Kbd Tag
<kbd> Text that user will input.. </kbd>
Example of HTML kbd Tag
|HTML Kbd Tag Code||Output|
<p> To logon to techhoney please write</p> <kbd> techhoney.com in browser’s address bar</kbd> <p> and press enter</p>
|To logon to techhoney please write
techhoney.com in browser’s address bar
and press enter
Here the example above HTML Kbd Tag we can see that the text “techhoney.com is browser’s address bar” is formatted in a different way than the text neighboring it.
HTML Kbd Tag Supporting Browsers