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

dl, dd, dt in XHTML 2.0

From: Marcos Caceres <marcos@datadriven.com.au>
Date: Tue, 20 May 2003 15:59:23 -0700
To: <www-html@w3.org>
Message-ID: <000901c31f23$7ee96fd0$1390b583@provenance>
Dear all, 

This has probably already been proposed a number of times, but I'm just
wondering if it wouldn't make more 'semantic' sense to encapsulate dd
elements inside the dt element in xhtml 2.0. 

For instance, 

 

<dl>

  <dt>My term

            <dd>This is the first definition</dd>

<dd>This is the second definition</dd>

 </dt>

</dl>

 

At the moment, it would seem that the semantic relationship between the dt
and the dd(s) elements is only implicit as it is positional (and only
perhaps visually semantic when rendered), rather than explicit through
encapsulation. Less importantly, encapsulation dd inside dt would also
follows the structure for coding every other type of the list module in
xhtml 2.0.. aside from nesting of list terms and definition elements. which
might be something else to consider all together for definition lists.

 

When I think about it some more, doing this kind of nesting may also require
the renaming of the dl, dd, dt, or even adding some sort of container that
wraps around a definition.. Something different like this:

 

<dl>

    <definition>

<dt>My term</dt>

            <dd>This is the a definition</dd>

<dd>This is the another definition</dd>

      </definition>

</dl>

 

Just a thought. Let me know what you think, 

Marcos
Received on Tuesday, 20 May 2003 01:53:44 GMT

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