HTML XHTML The Complete Reference
home » reference » appendix a » html element reference

<kbd> (Keyboard Input)


This element logically indicates text as keyboard input. A browser generally renders text enclosed by this element in a monospaced font.

Standard Syntax


<kbd
class="class name(s)"
dir="ltr | rtl"
id="unique alphanumeric identifier"
lang="language code"
style="style information"
title="advisory text"
</kbd>

Attributes Defined by Internet Explorer


accesskey="key" (5.5)
contenteditable=" false | true | inherit" (5.5)
disabled="false | true" (5.5)
hidefocus="true | false" (5.5)
language="javascript | jscript | vbs | vbscript" (4)
tabindex="number" (5.5)
unselectable="on | off" (5.5)

Standard Event Attributes


onclick, ondblclick, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup

Events Defined by Internet Explorer


onactivate, onbeforeactivate, onbeforecut, onbeforedeactivate, onbeforeeditfocus, onbeforepaste, onblur, oncontextmenu, oncontrolselect, oncut, ondeactivate, ondrag, ondragend, ondragenter, ondragleave, ondragover, ondragstart, ondrop, onfocus, onfocusin, onfocusout, onhelp, onlosecapture, onmouseenter, onmouseleave, onmouseup, onmousewheel, onmove, onmoveend, onmovestart, onpaste, onpropertychange, onreadystatechange, onresize, onresizeend, onresizestart, onselectstart, ontimeerror

Example


Enter the change directory command at the prompt as shown below:<br>
<br>
<kbd>
CD .. </kbd>

Compatibility


HTML 2, 3.2, 4, and 4.01, XHTML 1.0, 1.1, Basic
Internet Explorer 2, 3, 4, 5, 5.5, 6
Netscape 1, 2, 3, 4- 4.7, 6, 7
Opera 4-7

Notes


The HTML 2 and 3.2 specifications support no attributes for this element.

(X)HTML Elements
CSS Properties
Previous: isindex Next: label
< Home | About | Chapters | Examples | Errata | Reference | Site Map >