dt is the first part of the
dd pairing that constitutes an item
in a definition list (
dl). Note that
it can’t contain any block-level elements—not even
or heading elements such as
h2, and so on. It can only contain text.
You can see the
dt in the image below:
You can follow multiple
elements with a single description—for instance, in cases where you have
two terms that mean exactly the same thing:
<dl> <dt>Sofa</dt> <dt>Settee</dt> <dd>a long upholstered seat with a back and arms, for two or more people</dd> ⋮ </dl>
The example below shows the definition term being used to mark up the word “spam”:
<dl> <dt>Spam</dt> <dd>unsolicited email sent in the hope of increasing sales of some product, or simply for the purposes of annoying people</dd> ⋮ </dl>
Use This For …
dt element is used to mark up a term of some kind. You
can think of a word’s entry in a dictionary as a
dd as the explanation of that word, and the book
itself as the
Every browser listed supports this element type.
There are no comments yet.