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.
<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
- It is the group of characters in the double qoutaion marks.
- The operators perform operations on operands and do calculations.
- String length
- String length means the no. of characters in a string
Tag UsesSpecific uses of <dl> tag
Its common uses are given below.
terms and their definitions (name-value)
questions and answers (name-value)
Both opening and closing tags are necessary for the dl element.
All the global attributes are applicable on the dl element.
Was this article helpful?