X
HOME HTML5 CSS3 JAVASCRIPT SQL PHP5 JQUERY ANGULAR BOOTSTRAP3 XML MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

HTML <dd> Tag


Example

A description list, with terms and descriptions:

<dl>
  <dt>Coffee</dt>
  <dd>Black hot drink</dd>
  <dt>Milk</dt>
  <dd>White cold drink</dd>
</dl>

Try it Yourself »

Definition and Usage

The <dd> tag is used to describe a term/name in a description list.

The <dd> tag is used in conjunction with <dl> (defines a description list) and <dt> (defines terms/names).

Inside a <dd> tag you can put paragraphs, line breaks, images, links, lists, etc.


Browser Support

Element
<dd> Yes Yes Yes Yes Yes


Differences Between HTML 4.01 and HTML5

In HTML 4.01, the <dd> tag was used to describe an item in a definition list.

In HTML5, the <dd> tag is used to describe a term/name in a description list. 


Global Attributes

The <dd> tag also supports the Global Attributes in HTML.


Event Attributes

The <dd> tag also supports the Event Attributes in HTML.


Related Pages

HTML tutorial: HTML Lists

HTML DOM reference: DD Object


Default CSS Settings

Most browsers will display the <dd> element with the following default values:

Example

dd {
    display: block;
    margin-left: 40px;
}

Try it Yourself »



Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE

facebook