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

Re: XHTML2 dt/dd Nesting

From: William F Hammond <hammond@csc.albany.edu>
Date: Sun, 05 Oct 2003 14:09:49 -0400
To: Alexander Savenkov <w3@hotbox.ru>
Cc: www-html@w3.org
Message-ID: <i7y8vz8sk2.fsf@hilbert.math.albany.edu>

Alexander Savenkov <w3@hotbox.ru> writes:

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

But the content model of "dl" has always been (dt|dd)+ rather than
(dt,dd)+ and, indeed, there is common usage of "dl" that involves
only "dd" subelements.

In fact, with the absence of "menu" and "dir" in html4.01-strict and
all of the W3C recommended versions of XHTML, the dd-only usage of
"dl" is the only choice for simple lists.

In particular, it is both correct and sensible for the visual
effect of "hanging indentation" to
use:
  <dl>
    <dd>
      <p>...</p>
      <p>...</p>
      ...
    </dd>
  </dl>

I hasten to point out that in LaTeX markup "hanging indentation" is
correctly created with a one-item simple list.

                                    -- Bill
Received on Sunday, 5 October 2003 14:11:06 GMT

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