Re: html 5 and accessibility issue

Le 1 juil. 2007 à 01:28, Robert Burns a écrit :
> Just to clarify what Lachlan is saying, the HTML is valid. However,  
> it is non-conforming, if that's the meaning its supposed to convey.  
> A <dt> can have any number of associated <dd> element's after it.  
> However <dd>'s are always associated with the nearest preceding  
> sibling <dt>. The

In fact, HTML 4.01 is being very fuzzy on the definition for dl/dt/dd

     Definition lists vary only slightly from other types
     of lists in that list items consist of two parts: a
     term and a description. The term is given by the DT
     element and is restricted to inline content. The
     description is given with a DD element that contains
     block-level content.

but the HTML 4.01 example gives an argument for Aurélien. The example  
given by Aurélien is HTML 4.01 conformant. It doesn't mean it is wise  
or not misleading, but it is correct in HTML 4.01.

Here is an example with multiple terms and descriptions:

<DL>
    <DT>Center
    <DT>Centre
    <DD> A point equidistant from all points
               on the surface of a sphere.
    <DD> In some field sports, the player who
               holds the middle position on the field, court,
               or forward line.
</DL>








-- 
Karl Dubost - http://www.w3.org/People/karl/
W3C Conformance Manager, QA Activity Lead
   QA Weblog - http://www.w3.org/QA/
      *** Be Strict To Be Cool ***

Received on Monday, 2 July 2007 03:55:44 UTC