HTML <dl> Tag
Course Recommendation:
<dl>
Definition and Usage
<dl>
tag defines a description list (also known as definition list). <dt>(Definition of term/abbreviation) and <dd>Used together with each term/abbreviation description.
See also:
HTML Tutorial:HTML List
HTML DOM Reference Manual:DList Object
Example
A description list that contains terms and descriptions:
<dl> <dt>Computer</dt> <dd>Instruments used for calculation ... ...</dd> <dt>Display</dt> <dd>Devices that display information visually ... ...</dd> </dl>
Global Attributes
<dl>
The tag also supports Global Attributes in HTML.
Event Attributes
<dl>
The tag also supports Event Attributes in HTML.
Default CSS Settings
Most browsers will use the following default values to display <dl>
Element:
dl { display: block; margin-top: 1em; margin-bottom: 1em; margin-left: 0; margin-right: 0; }
Browser Support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | Support | Support | Support | Support |