HTML5 Reference

HTML <dd> tag

Definition

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

The <dd> tag must be preceded with a <dt> tag and both these tags must be enclosed within a <dl> tag.

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>
Boys Names
Pugh
Hugh
Girls Names
Charlotte
Emily
Jane

Attributes

The following attributes can be used with the <dd> tag.


<dd> Specific Attributes
Attribute Value Description Example
There are no required or optional attributes specific to the <dd> tag.
<dd> Global Attributes
Attribute Description Example
Common
classSpecifies a classname for the element allowing you to apply the style of the predefined class to the content.

<dd class="name">Definition Description</dd>
idSpecifies a unique id for the element allowing you to apply the style of the predefined id to the content.

<dd id="name">Definition Description</dd>
styleSpecifies an inline style for the element allowing you to apply the style to the contentt.

<dd style="color:red;">Definition Description</dd>
titleSpecifies an inline style for the element allowing you to apply the style to the content.

<dd title="Content info">Definition Description</dd>
Keyboard
accesskeySpecifies a keyboard shortcut to associate with the element.

<dd accesskey="a">Definition Description</dd>
tabindexSpecifies a tab order for the element.

<dd tabindex="1">Definition Description</dd>
Language
dirSpecifies the directional flow of the content.

<!-- The text will flow from left to right -->
<dd dir="ltr">Definition Description</dd>
<!-- The text will flow from right to left -->
<dd dir="rtl">Definition Description</dd>
langSpecifies a language code for the content of the element.

<dd lang="en">Definition Description</dd>
spellcheckSpecifies an inline style for the element allowing you to apply the style to the contentt.

<!-- Valid values true and false. -->
<!-- Default inherited / browser specific. -->
<dd spellcheck="true">Definition Description</dd> 
translateSpecifies an inline style for the element allowing you to apply the style to the content.

<!-- Valid values yes and no. -->
<!-- Default yes. -->
<dd translate="no">Definition Description</dd> 
Miscellaneous
contenteditableSpecifies whether the content of the element is editable.

<!-- Valid values true and false. -->
<!-- Default inherited. -->
<dd contenteditable="true">Definition Description</dd> 
draggableSpecifies whether the element is draggable.

<!-- Valid values true and false. -->
<!-- Default browser specific. -->
<dd draggable="true">Definition Description</dd>
hiddenSpecifies whether the element is not yet, or no longer, relevant.

<!-- Valid values an empty string or hidden -->
<dd hidden>Definition Description</dd> 
<dd hidden="hidden">Definition Description</dd> 
<dd> Event Attributes
Attribute Description Example
Document Element
oncopyThe script to be run when the user copies the content of an element.

 <!-- Executes go() function -->
<dd oncopy="go()">Definition Description</dd> 
oncutThe script to be run when the user cuts the content of an element.

 <!-- Executes go() function -->
<dd oncut="go()">Definition Description</dd>
onpasteThe script to be run when the user pastes some content into an element.

 <!-- Executes go() function -->
<dd onpaste="go()">Definition Description</dd>
Drag and Drop
ondragThe script to be run when an element is dragged.

 <!-- Executes go() function -->
<dd ondrag="go()">Definition Description</dd>
ondragendThe script to be run when an element has stopped being dragged.

 <!-- Executes go() function -->
<dd ondragend="go()">Definition Description</dd>
ondragenterThe script to be run when an element has been dragged to a valid drop target.

 <!-- Executes go() function -->
<dd ondragenter="go()">Definition Description</dd>
ondragleaveThe script to be run when an element leaves a valid drop target.

 <!-- Executes go() function -->
<dd ondragleave="go()">Definition Description</dd>
ondragoverThe script to be run when an element is being dragged over a valid drop target.

 <!-- Executes go() function -->
<dd ondragover="go()">Definition Description</dd>
ondragstartThe script to be run at the start of a drag operation.

 <!-- Executes go() function -->
<dd ondragstart="go()">Definition Description</dd>
ondropThe script to be run when a dragged element is being dropped.

 <!-- Executes go() function -->
<dd ondrop="go()">Definition Description</dd>
Form
onblurThe script to be run when the element loses focus.

 <!-- Executes go() function -->
<dd onblur="go()">Definition Description</dd>
onchangeThe script to be run when object changed and attempt to leave field.

 <!-- Executes go() function -->
<dd onchange="go()">Definition Description</dd>
oncontextmenuThe script to be run when a context menu is triggered.

 <!-- Executes go() function -->
<dd oncontextmenu="go()">Definition Description</dd>
onfocusThe script to be run when the element gets focus.

 <!-- Executes go() function -->
<dd onfocus="go()">Definition Description</dd>
oninputThe script to be run when an element gets user input.

 <!-- Executes go() function -->
<dd oninput="go()">Definition Description</dd>
oninvalidThe script to be run when an element is invalid.

 <!-- Executes go() function -->
<dd oninvalid="go()">Definition Description</dd>
onresetThe script to be run when a dragged element is being dropped.

 <!-- Executes go() function -->
<dd onreset="go()">Definition Description</dd>
onselectThe script to be run when some or all of the contents of an object are selected.

 <!-- Executes go() function -->
<dd onselect="go()">Definition Description</dd>
onsubmitThe script to be run when a form is submitted.

 <!-- Executes go() function -->
<dd onsubmit="go()">Definition Description</dd>
Keyboard
onkeydownThe script to be run when an element is in focus and keyboard key is pressed down.

 <!-- Executes go() function -->
<dd onkeydown="go()">Definition Description</dd>
onkeypressThe script to be run when an element is in focus and keyboard key is pressed down and released.

 <!-- Executes go() function -->
<dd onkeypress="go()">Definition Description</dd>
onkeyupThe script to be run when an element is in focus and keyboard key is released.

 <!-- Executes go() function -->
<dd onkeyup="go()">Definition Description</dd>
Media
onabortThe script code to be run on abort.

 <!-- Executes go() function -->
<dd onabort="go()">Definition Description</dd>
oncanplayThe script to be run when a file has buffered enough so it is ready to start playing.

 <!-- Executes go() function -->
<dd oncanplay="go()">Definition Description</dd>
oncanplaythroughThe script to be run when a file can be played all the way to the end without further need of buffering.

 <!-- Executes go() function -->
<dd oncanplaythrough="go()">Definition Description</dd>
oncuechangeThe script to be run when the cue changes when using the track element.

 <!-- Executes go() function -->
<dd oncuechange="go()">Definition Description</dd>
ondurationchangeThe script to be run when the length of the media is changed.

 <!-- Executes go() function -->
<dd ondurationchange="go()">Definition Description</dd>
onemptiedThe script to be run when a media resource element suddenly becomes empty, usually due to an error.

 <!-- Executes go() function -->
<dd onemptied="go()">Definition Description</dd>
onendedThe script to be run when the media has reach the end.

 <!-- Executes go() function -->
<dd onended="go()">Definition Description</dd>
onloadeddataThe script to be run when media data is loaded and playback can start.

 <!-- Executes go() function -->
<dd onloadeddata="go()">Definition Description</dd>
onloadedmetadataThe script to be run when metadata has been loaded.

 <!-- Executes go() function -->
<dd onloadedmetadata="go()">Definition Description</dd>
onloadstartThe script to be run whenthe media resource has started loading.

 <!-- Executes go() function -->
<dd onloadstart="go()">Definition Description</dd>
onpauseThe script to be run when the media resource has been paused.

 <!-- Executes go() function -->
<dd onpause="go()">Definition Description</dd>
onplayThe script to be run when the media resource starts playback.

 <!-- Executes go() function -->
<dd onplay="go()">Definition Description</dd>
onplayingThe script to be run when when playback has already begun.

 <!-- Executes go() function -->
<dd onplaying="go()">Definition Description</dd>
onprogressThe script to be run when the browser is fetching the media data.

 <!-- Executes go() function -->
<dd onprogress="go()">Definition Description</dd>
onratechangeThe script to be run when the playback rate changes.

 <!-- Executes go() function -->
<dd onratechange="go()">Definition Description</dd>
onseekedThe script to be run when the seeking attribute is set to false indicating that seeking has finished.

 <!-- Executes go() function -->
<dd onseeked="go()">Definition Description</dd>
onseekingThe script to be run when the seeking attribute is set to true indicating that seeking is currently active.

 <!-- Executes go() function -->
<dd onseeking="go()">Definition Description</dd>
onstalledThe script to be run when the browser is unable to continue fetching media data.

 <!-- Executes go() function -->
<dd onstalled="go()">Definition Description</dd>
onsuspendThe script to be run when media data has stopped before being completely loaded.

 <!-- Executes go() function -->
<dd onsuspend="go()">Definition Description</dd>
ontimeupdateThe script to be run when the media resources current playback position has changed.

 <!-- Executes go() function -->
<dd ontimeupdate="go()">Definition Description</dd>
onvolumechangeThe script to be run when the volume has changed or been muted.

 <!-- Executes go() function -->
<dd onvolumechange="go()">Definition Description</dd>
onwaitingThe script to be run when the media resource has paused but is expected to resume.

 <!-- Executes go() function -->
<dd onwaiting="go()">Definition Description</dd>
Mouse
onclickThe script to be run when when a mouse is clicked on an element.

 <!-- Executes go() function -->
<dd onclick="go()">Definition Description</dd>
ondblclickThe script to be run when a mouse is double clicked on an element.

 <!-- Executes go() function -->
<dd ondblclick="go()">Definition Description</dd>
onmousedownThe script to be run when he mouse button is pressed down while the cursor is over an element.

 <!-- Executes go() function -->
<dd onmousedown="go()">Definition Description</dd>
onmousemoveThe script to be run when the mouse button is moved.

 <!-- Executes go() function -->
<dd onmousemove="go()">Definition Description</dd>
onmouseoutThe script to be run when the mouse cursor moves off an element.

 <!-- Executes go() function -->
<dd onmouseout="go()">Definition Description</dd>>
onmouseoverThe script to be run when the mouse cursor moves over an element.

 <!-- Executes go() function -->
<dd onmouseover="go()">Definition Description</dd>
onmouseupThe script to be run when the mouse button is released while the cursor is over the element.

 <!-- Executes go() function -->
<dd onmouseup="go()">Definition Description</dd>
onwheelThe script to be run when the mouse wheel rolls up or down over an element.

 <!-- Executes go() function -->
<dd onwheel="go()">Definition Description</dd>
Scroll
onscrollThe script code to be run when the scrollbar of an element is being scrolled.

 <!-- Executes go() function -->
<dd onscroll="go()">Definition Description</dd> 
Window - NONE

Relevant HTML Tutorials

HTML Intermediate - Definition Lists