Re: html 5 and accessibility issue

Steven Faulkner wrote:
>>> <dl>
>>>  <dt> 1st terme </dt>
>>>  <dd> 1st terme description </dd>
>>>  <dd> 2nd terme description </dd>
>>>  <dt> 2nd terme </dt>
>>>  <dt> 3rd terme</dt>
>>>  <dd> 3rd terme description</dd>
>>> </dl>
>>>
>>> with no way for AT to know that 2nd terme description is actually the
>>> 2nd terme description and not the second description of the first terme
>> 
>> Actually, no, you can't. What you're doing is not conforming to either
>> HTML 4 or HTML 5.
> 
> How is the code of aurelien's example definition list not conforming
> to html 4.01?

It is technically conforming, but the example is trying to associate a 
<dd> with a subsequent <dt>, which has never been possible.  It's also 
not clear what the use case for doing so is.  Just swap the <dt> and 
<dd> for the 2nd term and description, and it gives the intended meaning.

-- 
Lachlan Hunt
http://lachy.id.au/

Received on Saturday, 30 June 2007 16:07:38 UTC