HTML <dd> tagS2C Home   « HTML <dd> tag

Definition

The <dd> tag is used to define a definition description, of the definition term, in a definition list.

Example


<dl>
  <dt>Boys Names</dt>
    <dd>Pugh</dd>
    <dd>Hugh</dd>
  <dt>Girls Names</dt>
    <dd>Charlotte</dd>
    <dd>Emily</dd>
    <dd>Jane</dd>
</dl>

Required Attributes

NONE

Optional Attributes

NONE

Common Attributes

class - specifies a classname for the element allowing you to apply the style of the predefined class to the content.


<dd class="classname">Definition description here</dd>

id - specifies a unique id for the element allowing you to apply the style of the predefined id to the content.


<dd id="idname">Definition description here</dd>

style - specifies an inline style for the element allowing you to apply the style to the content.


<dd style="color:red;text-align:left">Definition description here</dd>

title - specifies extra information about the content.


<dd title="information about the content">Definition description here</dd>

Language Attributes

dir - specifies the directional flow of the content.


<!-- The text will flow from left to right -->
<dd dir="ltr">Definition description here</dd>

<!-- The text will flow from right to left -->
<dd dir="rtl">Definition description here</dd>

lang - specifies a language code for the content of the element.


<dd lang="en">Definition description here</dd>

xml:lang - specifies a language code for the content of the element in XHTML documents.


<dd xml:lang="fr">Definition description here</dd>

Document Event Attributes

NONE

Form Event Attributes

NONE

Image Event Attributes

NONE

Keyboard Event Attributes

onkeydown - The JavaScript code to be run when an element is in focus and keyboard key is pressed.


<!-- Executes the go() function -->
<dd onkeydown="go()">Definition description here</dd>

onkeypress - The JavaScript code to be run when an element is in focus and keyboard key is pressed down and released.


<!-- Executes the go() function -->
<dd onkeypress="go()">Definition description here</dd>

onkeyup - The JavaScript code to be run when an element is in focus and keyboard key is released.


<!-- Executes the go() function -->
<dd onkeyup="go()">Definition description here</dd>

Mouse Event Attributes

onclick - The JavaScript code to be run when a mouse is clicked on the element.


<!-- Executes the go() function -->
<dd onclick="go()">Definition description here</dd>

ondblclick - The JavaScript code to be run when a mouse is double clicked on the element.


<!-- Executes the go() function -->
<dd ondblclick="go()">Definition description here</dd>

onmousedown - The JavaScript code to be run when the mouse button is pressed down while the cursor is over the element.


<!-- Executes the go() function -->
<dd onmousedown="go()">Definition description here</dd>

onmousemove - The JavaScript code to be run when the mouse button is moved.


<!-- Executes the go() function -->
<dd onmousemove="go()">Definition description here</dd>

onmouseout - The JavaScript code to be run when the mouse cursor moves off an element.


<!-- Executes the go() function -->
<dd onmouseout="go()">Definition description here</dd>

onmouseover - The JavaScript code to be run when the mouse cursor moves over an element.


<!-- Executes the go() function -->
<dd onmouseover="go()">Definition description here</dd>

onmouseup - The JavaScript code to be run when the mouse button is released while the cursor is over the element.


<!-- Executes the go() function -->
<dd onmouseup="go()">Definition description here</dd>

go to home page Homepage go to top of page Top