HTML Definition List
In HTML, a definition list (<dl>
) is used to group terms (<dt>
, definition terms) with their associated definitions (<dd>
, definition descriptions). This is useful for presenting glossaries, dictionaries, or any other list where each term is accompanied by an explanation.
Syntax:
<dl>
<dt>Term 1</dt>
<dd>Definition 1</dd>
<dt>Term 2</dt>
<dd>Definition 2</dd>
</dl>
Example:
<dl>
<dt>HTML</dt>
<dd>Hypertext Markup Language, the standard markup language for creating web pages and web applications.</dd>
<dt>CSS</dt>
<dd>Cascading Style Sheets, a style sheet language used for describing the look and formatting of a document written in HTML.</dd>
</dl>
Output:
- HTML
- Hypertext Markup Language, the standard markup language for creating web pages and web applications.
- CSS
- Cascading Style Sheets, a style sheet language used for describing the look and formatting of a document written in HTML.