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, 



  <dt>My term

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

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




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:




<dt>My term</dt>

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

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




Just a thought. Let me know what you think, 

Received on Tuesday, 20 May 2003 01:53:44 UTC

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