Definition Lists

A definition list is as ancient of an HTML construct as you can find. However, these are sorely underused, which is a shame because they provide a great way to define terms and concepts.

Definition lists consist of three elements: the definition list element, <dl>. . . </dl>; the definition term element, <dt>. . .</dt>, and the definition description element, <dd>. . .</dd>.

You can have multiple instances of terms within a definition list (see Example 2-8).

Example 2-8. Multiple definitions within a list

<dl>     <dt>Furkid (n)</dt>     <dd>A pet treated as though it were one's child.</dd>     <dt>Nearshoring (v)</dt>     <dd>Restructuring a company's workforce by moving jobs to a nearby         foreign country.</dd>

Get Spring Into HTML and CSS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.