[whatwg] Suggest making <dt> and <dd> valid in <ol>

Leif H Silli xn--mlform-iua at xn--mlform-iua.no
Sun Jul 15 10:51:49 PDT 2012


Sat, 14 Jul 2012 23:53:32 +0800, from Ian Yang

>Okay, it seems that one of the ideas I mentioned in my original email 
> needs
to be revamped.
>
>I was saying that using general heading (<H1>) and paragraph (<p>) loses
the meaning of "definition term" and "definition description", but I didn't 

>realize that using <ol> loses the meaning of "definition list". That is,
the following code is, in fact, improper:
>
><!-- The following code is improper as it loses the meaning of "definition
list". -->
><ol>
>    <li>
>        <dt></dt>
>        <dd></dd>
>    </li>
>    <li>
>        <dt></dt>
>        <dd></dd>
>    </li>
>    <li>
>        <dt></dt>
>        <dd></dd>
>    </li>
></ol>

An XOXO list should solve this:

http://microformats.org/wiki/xoxo#Properties_of_Outline_Items

Or just add a dl wrapper around the dt/dd elements in your code above.
--
Leif H Silli 



More information about the whatwg mailing list