Creating Definition Lists

(X)HTML provides a special tag for creating definition lists. This type of list is particularly suited to glossaries, but works well with any list that pairs a word or phrase with a longer description. Imagine, for example, a list of Classical Greek verb tenses, each followed by an explanation of proper usage.

To create definition lists:

1.
Type the introductory text for the definition list.
2.
Type <dl>.
3.
Type <dt>.
4.
Type the word or short phrase that will be defined or explained, including any logical or physical formatting desired.
5.
Type </dt> to complete the definition term.
6.
Type <dd>.
7.
Type the definition of the term that was entered in step 4.
8.
Type </dd> to complete the definition.
9.
Repeat steps ...

Get HTML, XHTML, & CSS, Sixth Edition: Visual QuickStart Guide 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.