Definition list
We will not focus on definition list, but will introduce the tag. On w3c it is called HTML Description Lists.
The last list type we will look at is arguably the least used, but the most semantically important in certain uses. The definition list is best used when you need to define a word or term. A description list is a list of terms, with a description of each term.
It requires 3 tags:
the definition list tag <dl>,
the word or term you are defining <dt>,
and the definition description<dd>.
An example:
<dl>
<dt>Coffee</dt>
<dd>- black hot drink</dd>
<dt>Milk</dt>
<dd>- white cold drink</dd>
</dl>
The last list type we will look at is arguably the least used, but the most semantically important in certain uses. The definition list is best used when you need to define a word or term. A description list is a list of terms, with a description of each term.
It requires 3 tags:
the definition list tag <dl>,
the word or term you are defining <dt>,
and the definition description<dd>.
An example:
<dl>
<dt>Coffee</dt>
<dd>- black hot drink</dd>
<dt>Milk</dt>
<dd>- white cold drink</dd>
</dl>