<dl> Tag Examples
Examples of the dl
tag in HTML 5
Example of the <dl> tag for a list of definitions
(see <dl> tag demo above)
Here is an example of how to code a glossary of some HTML terms and their definitions.
<dl> <dt>Term: <dfn><dl> tag</dfn></dt> <dd>Definition: The <dl> tag is used to code a description list consisting of description terms alternating with groups of one or more detail descriptions.</dd> <dt>Term: <dfn><dt> tag</dfn></dt> <dd>Definition: The <dt> tag is used to code a description term in a description list, leading into one or more detail description elements.</dd> <dt>Term: <dfn><dd> tag</dfn></dt> <dd>Definition: The <dd> detail description tag is used to code the description of an item inside a <b>dl</b> element for a description list.</dd> </dl>
Note that since the <dl> tag, <dt> tags and <dd> tags do not indicate that this is a list of terms and their definitions, each term is coded inside a dfn element.