The <dt>
tag stands for description term. It is used in a description list (<dl>
tag) to define a single term, which will be described with a description detail (<dd>
tag).
The <dl>
tag is used to create a list of terms with their respective descriptions. The <dd>
tag is used to describe the term mentioned by the <dt>
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, <dt>
is used to define a term for the description list.
<dd>
and<dt>
tags are within the body of<dl>
tag.
The following example shows how the <dt>
tag can be used in HTML.
A list of programming languages and their uses has 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