HTML - dt element

Table of Contents

About

dt 1) is an element that:

  • represents the term
  • that would be describe by the dd element
  • in a description list (dl element)

Example

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>

Powered by ComboStrap