HTML Definition List
3. Definition List (<dl>
)
A definition list is used to define terms and their descriptions.
Basic Syntax:
Elements within <dl>
:
<dt>
: Represents a term.<dd>
: Represents the description of the term.
Example:
Additional Attributes for List Items (<li>
)
value
(used only in<ol>
): Specifies a custom value for a list item.
Example with value
:
Comments
Post a Comment