The design of <dl> tag is possibly flawed. Here are two points that describe the possible flaw:
-
dldesigned to be independent ofulandolimplies thatdlis neither unordered nor ordered. - The spec for
dldoes not provide a method for defining whether adlis unordered/ordered. Even if it does, the purpose of the method would overlap with the purposes ofulandol.
Wouldn’t it make more sense that <dt> and <dd> tags be in ul and ol elements instead so that when we want to write an unordered and an ordered description lists, we would write the following two pieces of code?
<ul>
<li>
<dt></dt>
<dd></dd>
</li>
<li>
<dt></dt>
<dd></dd>
</li>
<li>
<dt></dt>
<dd></dd>
</li>
</ul>
<ol>
<li>
<dt></dt>
<dd></dd>
</li>
<li>
<dt></dt>
<dd></dd>
</li>
<li>
<dt></dt>
<dd></dd>
</li>
</ol>