Definition lists are slightly different from other types of lists, and they consist of two parts: name and definition. dt specifies a name, an inline element. dd specifies the definition, which is a block-level element.
Standard attributes
id, class, title, style, dir, lang, xml:lang
Event Properties
onclick, ondblclick, onmousedown, onmouseup, onmouseover,
onmousemove, onmouseout, onkeypress, onkeydown, onkeyup
Example:
<dl>
<dt>Title</dt>
<dd>Content 1</dd>
<dd>Content 2</dd>
</dl>
dl - define list - define list
dt - define list title - is used to generate the titles that define each list item in the list. Repeat the titles that can define multiple list items. Note: The hx element cannot be included.
dd - define list define - Used to generate descriptive fields that define each list item in the list. Repeat use can define multiple descriptive fields. dd is a brief description or explanation of the corresponding dt.
The dl list has strong description, explanation and supplementary significance. dt and dd have an obvious logical relationship, dd belongs to dt, and the content in dd is a description, explanation and supplement to dt. In addition, although dd is a parallel relationship, its description is multi-angle, different from simple li.
For example:
<dl>
<dt>Authoritative JavaScript Guide</dt>
<dd>Publisher: xxx</dd>
<dd>isbn: xxx</dd>
<dd>Sales price: xxx</dd>
</dl>
<ul>
<li>Authoritative Guide to JavaScript</li>
<li>javascript dom advanced programming</li>
<li>ppk talks about javascript</li>
</ul>