HTML DL Tag <dl> is used to define a definition list.

DL tag is used with the HTML dd tag <dd> (characterize items in list of definitions) and with HTML dt Tag <dt> (name the items in the list of definition).

HTML dl tag is a closed tag and needs to be closed using HTML closing dl tag </dl>

Syntax of HTML DL Tag

List goes here

Example of HTML DL Tag

HTML dl Tag Code Output
[sourcecode language=”html”]
<dd>Sweet in Taste</dd>
<dd>Salty in Taste</dd>
Sweet in Taste
Salty in Taste

In the example output observe that we have used the DL Tag to create a list of definitions having items as “Sugar” and “Salt” and respective properties in dd tag.

Also note the usage of HTML dd tag and HTML dt tag in the example.

HTML DL tag supports all HTML Global Attributes and HTML Event Attributes.

HTML DL Tag Supporting Browsers

S. No. Browser Supported(Yes/No)
1 Internet Explorer Yes
2 Firefox Yes
3 Google Chrome Yes
4 Opera Yes
5 Safari Yes

Leave a Reply

Your email address will not be published. Required fields are marked *