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

Adding label to other list elements?

From: Ben Meadowcroft <cee.plus@virgin.net>
Date: Sat, 31 May 2003 13:46:08 +0100
Message-ID: <006801c32772$9c1dcea0$26e287d9@BensPC>
To: <www-html@w3.org>

In a recent post entitled "XHTML 2.0 List Module negates the semantic
usefulness of definition lists." I mentioned that the specification lacked a
"more general/neutral list element
that relates two items together (like a DT DD pair)". The motivation for
this was to reduce the need for authors to "abuse" the definition list to
model labelled dialogues for example.

Having thought about it I would like to propose that the label element
introduced with navigation lists be introduced into ordered and unordered
lists. The motivation for this is that these more content neutral elements
will now be able to utilised instead of wresting the semantics of a
definition list. We will now have a proper mechanism for associating labels
with normal list items.

Use Case: modelling a dialogue.

 <li>Hi, how are you doing?</li>
 <li>Fine Thanks, and you?</li>
 <li>Doing well, I got that job I applied for at CERN so I am really

produces (with suitable css of course)

  Hi, how are you doing?
  Fine Thanks, and you?
  Doing well, I got that job I applied for at CERN so I am really pleased.

So does this idea have legs then? Perhaps a different element name than
label(although I think it's quite neat)?

Ben Meadowcroft
Received on Saturday, 31 May 2003 08:46:10 UTC

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