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:

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

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

  <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>

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

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:06:05 UTC