The design of <dl>
tag is possibly flawed. Here are two points that describe the possible flaw:
-
dl
designed to be independent oful
andol
implies thatdl
is neither unordered nor ordered. - The spec for
dl
does not provide a method for defining whether adl
is unordered/ordered. Even if it does, the purpose of the method would overlap with the purposes oful
andol
.
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>