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

<dd> (Definition in a Definition List)


This element indicates the definition of a term within a list of defined terms (<dt>) enclosed by a definition list (<dl>).

Standard Syntax


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

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)
nowrap="no | yes" (4)
tabindex="number" (5.5)
unselectable="on | off" (5.5)

Standard Events


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

Events Defined by Internet Explorer


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

Element Specific Attributes


nowrap
This Internet Explorer–specific attribute is used to control the wrapping of text within a <dd> tag. If set to yes, text should not wrap. The default is no. CSS rules should be used instead of this attribute.

Example


<dl>

  <dt>DOG</dt>

<dd>A domesticated animal that craves attention all the time</dd>

  <dt>CAT</dt>
<dd>An animal that would just as soon ignore you until it gets hungry</dd>
</dl>

Compatibility


HTML 2, 3.2, 4, 4.01, and 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


Under HTML specifications, the closing tag for this element is optional, though encouraged when it will help make the list more understandable.
Under XHTML 1.0, the closing </dd> tag is mandatory
This element occurs within a list of defined terms enclosed by the <dl> element. Typically associated with it is the term it defines, indicated by the <dl> element that precedes it.
HTML 2 and 3.2 define no attributes for this element.

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