: The Description List element
The HTML element represents a description list. The element encloses a list of groups of terms [specified using the element] and descriptions [provided by elements]. Common uses for this element are to implement a glossary or to display metadata [a list of key-value pairs].
Flow content, and if the element's children include one name-value group, palpable content. |
Either: Zero or more groups each consisting of one or more elements followed by one or more elements, optionally intermixed with and elements. elements, optionally intermixed with and elements. |
None, both the starting and ending tag are mandatory. |
Any element that accepts flow content. |
No corresponding role |
group, list, none, presentation |
HTMLDListElement |
10 Lists
Contents
- Introduction to lists
- Unordered lists [UL], ordered lists [OL], and list items [LI]
- Definition lists: the DL, DT, and DD elements
- Visual rendering of lists
- The DIR and MENU elements
So what is a definition list?
Simply put it is a list of definitions. For the unabridged version read therelevant section in the HTML specification. Basically a definition list is composed of three HTML elements and some text. These are the , and elements.
A definition list is the container element for DT and DD elements. The DL element should be used when you want to incorporate a definition of a term in your document, it is often used in glossaries to define many terms, it is also used in “normal” documents when the author wishes to explain a term in a more detail [Like this definition].The term currently being defined in the definition list. This element contains inline data.The definition description element contains data that describes a definition term. This data may be either inline, or it may be block level.HTML Tag
Example
A description list, with terms and descriptions:
Coffee
Black hot drink
Milk
White cold drink