Use dl dt and dd elements to create Description List

Description

A description list consists of a set of term/description groupings.

You use three elements to define description lists: the dl, dt, and dd elements.

  • dl Denotes a description list.
  • dt Denotes a term within a description list.
  • dd Denotes a definition within a description list.

Multiple dd elements can be used for a single dt element, which allows you to provide multiple definitions for a single term.

Example

The following code creates Description Lists.


<!DOCTYPE HTML>
<html>
<body>
  I like:<!--from  w w  w . j a  v a2 s .  c  om-->
  <dl>
    <dt>CSS</dt>
    <dd>Cascading Style Sheets</dd>
    <dd><i>a style sheet language used for
           describing the look and formatting
           of a document written in a markup language</i></dd>

    <dt>HTML</dt>
    <dd>The mark language</dd>

    <dt>Javascript</dt>
    <dd>The coding logic</dd>
  </dl>
</body>
</html>

Click to view the demo





















Home »
  HTML CSS »
    HTML »




HTML Introduction
HTML Document
HTML Section
HTML Group Content
HTML Text Marker
HTML Table
HTML Form
HTML Embed