HTML Dl Tag

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

<dl>
List goes here
</dl>

Example of HTML DL Tag

HTML dl Tag Code Output
<dl>
<dt>Sugar</dt>
<dd>Sweet in Taste</dd>
<dt>Salt</dt>
<dd>Salty in Taste</dd>
</dl>
Sugar
Sweet in Taste
Salt
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

Tagged , , , , , , , , , , , , , , . Bookmark the permalink.