The <dd>
tag stands for description detail. It is used in a description list (<dl>
tag) to describe a term that is mentioned by the description term tag (<dt>
).
The <dl>
tag is used to create a list of terms with their respective descriptions. The <dt>
tag is used to mention a term that will be described under the <dd>
tag.
<dl>
<dt>Term 1</dt>
<dd>Description for Term 1</dd>
<dt>Term 2</dt>
<dd>Description for Term 2</dd>
</dl>
In the above snippet of code, <dd>
is used to describe the term mentioned by the <dt>
tag.
<dd>
and<dt>
tags are within the body of<dl>
tag.
The following example shows how the <dd>
tag can be used in HTML:
A list of programming languages and their uses have been created using the <dl>
tag. The name of each language is defined in a <dt>
tag, and its use is defined in the <dd>
tag.
Free Resources