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]

RE: dl, dd, dt in XHTML 2.0

From: Marcos Caceres <marcos@datadriven.com.au>
Date: Tue, 20 May 2003 20:59:51 -0700
To: <www-html@w3.org>
Cc: "'Rowland Shaw'" <Rowland.Shaw@crystaldecisions.com>, "'Ernest Cline'" <ernestcline@mindspring.com>
Message-ID: <000001c31f4d$703dff80$b190b583@provenance>


Rowland, those examples are great. I hadn't gone as far as thinking about it
in conjunction with xml:lang. I think this combined with Ernest 'di'
(definition item) solution would make for a nice improvement to definition
lists.

Another option that gets rid of the need for an encapsulation option might
be to explicitly state which term a definition is referring by using an
element's id... maybe something like this: 

<dl>
  <dd refTerm="Foo2">bar1</dd>
  <dt id="Foo1">Foo1</dt>
  <dt id="Foo2">Foo2</dt>
  <dd refTerm="Foo1">bar2</dd>
  <dd refTerm="Foo1" xml:lang="en-gb">bar3</dd>
</dl>

Where the 'refTerm' attribute would reference a dt element's id attribute. 

Personally, I prefer Ernest <di> ... </di> solution: I think it's easier to
use, looks semantically and structurally sound, and inline with the way
other lists are constructed.

Marcos
Received on Tuesday, 20 May 2003 06:54:15 GMT
Valid XHTML 1.0! Valid CSS! Site Map | Privacy Policy | Terms of Use | WebHeadStart.org © 2005 All Rights Reserved.