HTML dl Tag specifies a description list. The word dl stands for description list. The description list contains terms and their description.
Table of Contents
Syntax of HTML dl Tag
The Syntax of HTML dl Tag is shown below, It has both starting and ending tags.
<dl>list</dl>
Usage of HTML dl Tag
HTML dl Tag is used to make a description list.
HTML dl tag is used with dd tag and dt tag.
HTML dl tag is a block level element.
Example of HTML dl Tag
Simple example of HTML dl Tag is shown below.
<dl>
<dt>HTML</dt>
<dd>Hyper Text Markup Language</dd>
<dt>CSS</dt>
<dd>Cascading Style Sheet</dd>
</dl>
Output
The output of above HTML code is shown below.
- HTML
- Hyper Text Markup Language
- CSS
- Cascading Style Sheet
Browser Support for HTML dl Tag
HTML dl Tag is supported by all major browsers including Safari and Internet Explorer.
Global Attributes Support in HTML dl Tag
The HTML dl Tag supports all Global Attributes.
Event Attributes Support in HTML dl Tag
The HTML dl Tag supports all Event Attributes.
HTML dl Tag Video
Watch our video on HTML dl Tag and subscribe our Youtube Channel.