<kbd> tag

HTML <kbd> tag

The <kbd> is phrase tag that marks the input text as a keyboard input.

Syntax:
<kbd> text..</kbd>

Example

<p>Hello <kbd>The text given inside kbd tag represents keyboard text</kbd> Thank you.</p>

Default CSS Value

font-family: monospace;

How Browser will display

INLINE.

Difference between HTML4.01, XHTML and HTML5

HTML4 XHTML HTML5
No Difference No Difference No Difference

Attributes used with <kbd> tag

NONE

Global Attributes

The <kbd> tag supports Global attributes.

Event Attributes

The <kbd> tag supports Event attributes.

Supporting Browsers

supporting-browsers for tags

Related Tags

<tt>, <code>, <samp>, <i>, <em>, <strong>, <cite> & <dfn> tags.

Tutorials for all brains!