HTML - Description List (dl)

About

dl is an list HTML element that represents a description list

The lists has several element that are represented by:

Example

Glossary

A Glossary

<dl> <!-- Description List (dl) -->

    <!-- Description Term (dt) -->
    <dt>Sequence</dt> 
    <dd>An ordererd collection that allows duplicate</dd> <!-- Description description (dd) - description of the term -->

    <!-- Another description Term (dt) -->
    <dt>List</dt>
    <dd>A finite sequence</dd>

    <!-- Another Description Term (dt) -->
    <dt>Set</dt>
    <dd>An unordered collection that does not allow duplicate</dd>
</dl>

Output:

FAQ

This example shows a list of frequently asked questions (a FAQ) marked up using:

  • the dt element for questions
  • and the dd element for answers.
<article>
 <h1>FAQ</h1>
 <dl>
  <!-- question -->
  <dt>What do we want?</dt>
  <!-- answer -->
  <dd>Our data.</dd>
  
  <!-- question -->
  <dt>When do we want it?</dt>
  <!-- answer -->
  <dd>Now.</dd>
  
  <!-- question -->
  <dt>Where is it?</dt>
  <!-- answer -->
  <dd>We are not sure.</dd>

 </dl>
</article>





Discover More
HTML - (Flow|Body) Content

Most elements that are used in the body of documents and applications are categorized as flow content. Flow content consists of flow elements intermixed with normal character data. (ifbodhead...
HTML - List

A group of non-interactive list items. A list can contain: listitem, or another list HTML Unordered list: HTML ul: (Tree|Nested) Unordered list Ordered list: HTML ol element Description...
HTML - dd Element

dd is a element that represents the description (definition, value) of a dt(term) element in a description list (dl element). A dl can be used to define a vocabulary list, like in a dictionary....
HTML - dfn element (Defining term)

dfn is an HTML element that locates the definition of a term and can be addressed as fragment in an URI. fragment of an URI The below phrase define the term represent. With a description list...
HTML - dt element

dt is an element that: represents the term that would be describe by the dd element in a description list (dl element) This example shows a list of frequently asked questions (a FAQ) marked...



Share this page:
Follow us:
Task Runner