Lists
HTML <dl> element
Groups terms and their descriptions or names and values. Use dt and dd for each group. Description lists can represent glossaries, metadata and name–value associations, not only dictionaries. A group can have multiple dt or dd entries. Do not place arbitrary text directly between groups. It accepts global HTML attributes; individual global features may be inapplicable or restricted.
Formal Syntax & Structure
html syntaxhtml
<dl> <dt>Term</dt> <dd>Value</dd></dl>Return Value
HTMLDListElement
Content model: Groups of dt then dd elements, or div wrappers containing those groups; script-supporting elements may be interspersed.
Working Example
Example Snippethtml
<!doctype html><html lang="en"> <head> <meta charset="utf-8"> <title>HTML example</title> </head> <body> <dl> <dt>Format</dt> <dd>Paperback</dd> <dt>Pages</dt> <dd>240</dd> </dl> </body></html>