Publishers of technology books, eBooks, and videos for creative people

Home > Articles > Web Design & Development > HTML/XHTML

  • Print
  • + Share This
This chapter is from the book

This chapter is from the book

dt

Description

Use the dt element to denote a term in a definition list (dl). The term is described by at least one corresponding dd element that follows the dt. Please note that a dt may contain inline content only.

The simplest arrangement within a dl is one dt (term) grouped with one dd (description). Another possibility is shown in the following example, with one dt associated with multiple dds since director can be defined in many ways. The dl entry in this chapter elaborates on these and other configurations, definition lists in general, and the role of dt.

Example:

<dl>
   <dt><dfn>director</dfn></dt>
   <dd>One who directs</dd>
   <dd>One who oversees a group or an organization</dd>
   <dd>One who leads all aspects of the creation of a film</dd>
   . . .
</dl>

Most user agents typically render a definition list by default as shown here, except for the italics on director, which is because of the dfn element:

  • director
    • One who directs
    • One who oversees a group or an organization
    • One who leads all aspects of the creation of a film
  • + Share This
  • 🔖 Save To Your Account