HTML DL Tag
This post aims to explain HTML <dl> Tag. We hope it will satisfy the educational needs of our readers.
The HTML <dl> tag is used to define a description list. A description list is a list of terms and their corresponding descriptions.
With terms and descriptions, here is a description list:
Example
Here is another example that illustrates the working of dl tag:
Example: 
HTML <dl> tag Uses
The HTML <dl>
tag is used to create a definition list. It is used to display a list of terms and their corresponding definitions or descriptions. The <dl>
tag is typically used to create glossaries, dictionaries, or lists of technical terms and their meanings.
The <dl>
tag should always be used together with the <dt>
and <dd>
tags, which are used to define the terms and descriptions, respectively. Each <dt>
tag defines a term or phrase, and each <dd>
tag defines the corresponding definition or description.
Uses and Definition
HTML dl Tag <dl> specifies a description list.
The <dl> tag is applied in combination with <dt> (identifies terms/names) and <dd> (explains each term/name).
Browser Compatibility
Element | |||||
---|---|---|---|---|---|
<dl> | Yes | Yes | Yes | Yes | Yes |
Event Attributes
The <dl> tag is also capable of accepting HTML Event Attributes.
Global Attributes
The <dl> tag is also capable of accepting HTML Global Attributes.
CSS Default Settings
The majority of browsers display the <dl> element utilizing the default values for HTML Tag dl:
dl { display: block; margin-top: 1em; margin-bottom: 1em; margin-left: 0; margin-right: 0; }