<dl>

Description

This element is the definition list, and it is used in conjunction with the <dt> and <dd> elements. You can use the <dl> element to contain multiple definition terms(<dt>) along with definition descriptions(<dd>).

Example


<html>
<body>
     <dl>
          <dt>&lt;TABLE&gt;</dt>
          <dd>an html element.</dd>
          <dt>border-color</dt>
          <dd>a style sheet property.</dd>
          <dt>innerText</dt>
          <dd>a JavaScript property.</dd>
          <dt>cloneNode()</dt>
          <dd>a JavaScript method.</dd>
     </dl><!-- w  w w.  j  av  a 2 s  .c o m-->
</body>
</html>

Click to view the demo

The code above generates the following result.

dl




















Home »
  HTML CSS »
    HTML CSS Reference »




HTML Tag Reference
CSS Reference
CSS Selector Reference
Encoding Reference