W3C home > Mailing lists > Public > www-html@w3.org > October 2003

XHTML2 dt/dd Nesting

From: Alexander Savenkov <w3@hotbox.ru>
Date: Sun, 5 Oct 2003 17:45:00 +0400
Message-ID: <1295661619.20031005174500@hotbox.ru>
To: www-html@w3.org

Hello www-html,

To solve the problem of 'dt'/'dd' nesting (i.e. the lack of connection
between the terms and the descriptions inside a definition list) the
following construction could be allowed:

 <dl>
  <li>
   <dt>Term 1</dt>
   <dd>Def 1</dd>
  </li>
  <li>
   <dt>Term 2</dt>
   <dd>Def 2.1</dd>
   <dd>Def 2.2</dd>
  </li>
  <li>
   <dt>Term 3.1</dt>
   <dt>Term 3.2</dt>
   <dd>Def 3</dd>
  </li>
 </dl> 

A 'for' attribute of type IDREF(s) on these elements would also do.

 <dl>
  <dt id="term1">Term 1</dt>
  <dd for="term1">Def 1</dd>
  
  <dt for="def21 def22">Term 2</dt>
  <dd id="def21">Def 2.1</dd>
  <dd id="def21">Def 2.2</dd>

  <dt for="def3">Term 3.1</dt>
  <dt for="def3">Term 3.2</dt>
  <dd id="def3">Def 3</dd>
 </dl>

Alex.
-- 
  Alexander "Croll" Savenkov                  http://www.thecroll.com/
  w3@hotbox.ru                                     http://croll.da.ru/
Received on Sunday, 5 October 2003 10:02:08 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:58 GMT