JavaScript EditorBest javascript editor debugger     Ajax website 

Main Page

Previous Page
Next Page

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:

Type the introductory text for the definition list.

Type <dl>.

Type <dt>.

Type the word or short phrase that will be defined or explained, including any logical or physical formatting desired.

Type </dt> to complete the definition term.

Type <dd>.

Type the definition of the term that was entered in step 4.

Type </dd> to complete the definition.

Repeat steps 38 for each pair of terms and definitions.

Type </dl> to complete the list of definitions.


  • Browsers generally indent definitions on a new line below the definition term.

  • You can create more than one dl line or more than one dt line to accommodate multiple words or multiple definitions.

Figure 15.19. Each entry word is labeled with the dt tag, while the definition itself is labeled with a dd tag.

Figure 15.20. You may want to add formatting to your definition term to help it stand out.

Figure 15.21. By default, the defined word (the dt) is aligned to the left and the definition (dd) is indented.

Previous Page
Next Page

JavaScript EditorBest javascript editor debugger     Ajax website