1. Home
  2. Computing & Technology
  3. Web Design / HTML

<kbd></kbd>

By , About.com Guide

<kbd> Description:

The <kbd> element defines text that should be entered by a user - as in a keyboard.

Most browsers display this text in a mono-spaced font.

<kbd> Web Browser Support:
<kbd> Attributes:
<kbd> End Tag:
</kbd> REQUIRED
Contents:

CDATA Usually plain text. The following tags are valid within the <kbd> tag:
a, abbr, acronym, applet, b, basefont, bdo, big, br, button, cite, code, dfn, kbd, font, i, iframe, img, input, kbd, label, map, object, q, s, samp, script, select, small, span, strike, strong, sub, sup, textarea, tt, u, var

<kbd> Valid Context:

The <kbd> tag is valid within the following tags:
a, abbr, acronym, address, applet, b, bdo, big, blockquote, body, button, caption, center, cite, code, dd, del, dfn, div, dt, kbd, fieldset, font, form, h1, h2, h3, h4, h5, h6, i, iframe, ins, kbd, label, legend, li, noframes, noscript, object, p, pre, q, s, samp, small, span, strike, strong, sub, sup, td, th, tt, u, var

<kbd> Usage:
  • standard keyboard text
    Type in the following: <kbd>C:\BAT.EXE</kbd>
<kbd> Special Notes:
  • This is usually used in instructions text.
  • Most browsers render it in a monospaced font. If you need your text to be monospaced (like a typewriter), use the tt tag or style sheets instead.
More <kbd> Information:

Return to XHTML Element (HTML Tags) Library

About.com Special Features

The Best Web Trends of the Decade

A look back at the best innovations, ideas and technologies over the last 10 years, More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >