8.1.3. Tag definition lists with <dl>, <dt> and <dd>

Use the <dl>, <dt> and <dd> tags to tag definition lists (in a glossary, for example).

You can associate several definitions with a single term by following the procedure below:

<dl>
    <dt>Term 1</dt>
    <dd>Definition of term 1.</dd>
    <dt>Term 2</dt>
    <dt>1. First definition of term 2.</dt>
    <dt>2. Second definition of term 2.</dt>
</dl>

HTML5

The HTML5 specification extends the role of the standard definition list to a broader one of a list of descriptions. With HTML5 you can use <dl>, <dt> and <dd> to tag any groups of key/value pairs (product sheet, publication details of an article, etc.).

<h2>Conference on sustainable development </h2>
<dl>
    <dt>Place</dt>
    <dd>London</dd>
    <dt>Date</dt>
    <dd>Saturday 29 September 2012</dd>
    <dt>Time</dt>
    <dd>From 10:00 a.m. </dd>
</dl>

notices/html-css/baliser-les-listes-de-definitions-avec-dl-dt-et-dd.txt · Last modified: 11 June 2013 at 14:36 by Sébastien Delorme (Atalan)
 

Project coordinated by Atalan.

In partnership with:

Observers: