HTML <dl> Definition List Tag Reference
The dl HTML tag means "definition list" and is used to create a list of name/description pairs.
The dl HTML tag means "definition list" and is used to create a list of name/description pairs.
The <dl> tag is the third most common list type in HTML (after unordered and ordered lists). It’s less flexible than its simpler siblings. What it does is provide a means to list a set of definitions, or name/description pairs.
Describe appropriate use, when to use it, when not to use it.
A may only contain definition terms ( <dt>..</dt>) tags and corresponding definitions (<dd>..</dd>) tags. See examples below.
OK – they can also contain a list header ( <lh>..</lh>) tag, but not many people know or use these.
When the <dl> tag was created as part of the original HTML definition, HTML was focused on marking up academic papers, where definitions of terms are commonplace. Today, HTML is used for loads more stuff, and people have found the <dl> tag useful for more than definitions. A lot of web designers argue that it’s OK to use definition lists for a range of name / value (and even name / value, value or name, name / value combos). A few will stick to the more narrow definition, but this is a bit silly.
It’s valid in all current versions of HTML and xHTML, and it should always have a closing </dl> tag.
Usually you’ll have terms & definitions in pairs, as below.
Looks like…
The specification seems to allow for more than one definition per term, or more than one term having the same definition, e.g.
Looks like…
You may also consider using:
Do you love our approach to crafting simple & effective web sites that just work for people?
We'd love to hear about your web strategy.
Contact one of our team today!
<dt>Do</dt>
<dd>A deer, a female deer</dd>
<dt>Re</dt>
<dd>A drop of golden sun</dd>
<dt>Mi</dt>
<dd>A name I call myself</dd>
</dl>