Welcome to WebHeadStart.org

Web Technologies

Sponsored By

WebHeadStart.org is currently in beta.
Please pardon our appearance as we work to provide you with the most comprehensive reference on today's web technologies.

Interested in advertising on WebHeadStart? Become an advertising partner today!

[WWW-HTML Mailing List Archive Home] [Messages By Thread] [Messages By Date]

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.

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

produces (with suitable css of course)

Dave
  Hi, how are you doing?
Kieran
  Fine Thanks, and you?
Dave
  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
http://www.benmeadowcroft.com 
Received on Saturday, 31 May 2003 08:46:10 GMT
Valid XHTML 1.0! Valid CSS! Site Map | Privacy Policy | Terms of Use | WebHeadStart.org © 2005 All Rights Reserved.