Definition lists (definition-list)
Ensure each term is marked as <dt> and each definition as <dd> within a <dl> to maintain a semantic term-definition pairing.
Improper use of ul inside dt:
In this example, the <ul> element is placed inside a <dt> element, which is intended for terms—not lists.
-
- Term 1
- Term 2
- Definition
The (DOM/programmatic) structure of the above example looks like this:
<dl>
<dt>
<ul>
<li>Term 1 </li>
<li>Term 2 </li>
</ul>
</dt>
</dd> Definition </dd>
</dl>
<dt>
<ul>
<li>Term 1 </li>
<li>Term 2 </li>
</ul>
</dt>
</dd> Definition </dd>
</dl>