HTML dl tag
HTML dl element defines description list. It consists of one or more name-value pairs. This list is used to define various terms. For example, string, operators and string length are the terms that are defined in description list.
Preview Example
Try itExample
<p>Definitions of various terms</p>
<dl>
<dt>String</dt>
<dd>It is the group of characters in the double qoutaion marks.</dd>
<dt>Operators</dt>
<dd>The operators perform operations on operands and do calculations.</dd>
<dt>String length</dt>
<dd>String length means the no. of characters in a string</dd>
</dl>Definitions of various terms
- String
- It is the group of characters in the double qoutaion marks.
- Operators
- The operators perform operations on operands and do calculations.
- String length
- String length means the no. of characters in a string
Tag Uses
Specific uses of <dl> tagIts common uses are given below.
terms and their definitions (name-value)
questions and answers (name-value)
Tag omission
Both opening and closing tags are necessary for the dl element.
Global Attributes
All the global attributes are applicable on the dl element.