Name
<KBD> — NN all IE all HTML all
Synopsis
<KBD>...</KBD>
End Tag: Required
The KBD
element is one of a large group of elements that the HTML 4.0
recommendation calls phrase elements. Such
elements assign structural meaning to a designated portion of the
document. A KBD element is one that displays text
that a user is supposed to type on the keyboard, presumably to fill a
text field or issue some command.
Browsers have free rein to determine how (or whether) to distinguish
KBD element content from the rest of the
BODY element. Both Navigator and Internet Explorer
elect to use a monospace font for the text. This can be overridden
with a style sheet as you see fit.
Example
<P>If you don't know the answer, type <KBD>NONE</KBD> into the text box. </P>
Object Model Reference
- IE
[window.]document.all.elementID
Attributes
|
|
|
|
|
|
|
|
|
Event Handler Attributes
|
Handler |
NN |
IE |
HTML |
|---|---|---|---|
onClick |
n/a |
4 |
4 |
onDblClick |
n/a |
4 |
4 |
onDragStart |
n/a |
4 |
n/a |
onHelp |
n/a |
4 |
n/a |
onKeyDown |
n/a |
4 |
4 |
onKeyPress |
n/a |
4 |
4 |
onKeyUp |
n/a |
4 |
4 |
onMouseDown |
n/a |
4 |
4 |
onMouseMove |
n/a |
4 |
4 |
onMouseOut |
n/a |
4 |
4 |
onMouseOver |
n/a |
4 |
4 |
onMouseUp |
n/a |
4 |
4 |
onSelectStart |
n/a |
4 |
n/a |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access