HTML <kbd> tag
When writing in HTML, the <kbd> tag is an inline element used to designate that a section of text is keyboard input. The following sections contain information about this tag, including an example of it in use, as well as related attributes, browser compatibility.
This element is unique in that it is a phrase tag, which indicates that a section of text has structural meaning.
Example of <kbd> code
<p>Here is a regular sentence that has <kbd>a bit of keyboard input</kbd> contained within it.</p>
Here is a regular sentence that has a bit of keyboard input contained within it.
Within an HTML tag, an attribute dictates certain aspects of an HTML element. Attributes are made up of a name and value pair. While the <kbd> tag does not have any unique attributes, it does utilize all of the standard attributes.
|All versions||All versions||All versions||All version||All versions||All versions|