Tonico Strasser blurted out:
Robert Moser wrote:Then you could have something like this: <dl> <dli> <dt>Albatross</dt> <dd>A sea bird</dd> <dd>A tasty snack at the movies</dd> </dli> <dli> <dt>Swallow</dt> <dd>Coconut delivery system</dd> </dli> </dl>
What about:
<dl> <dt>Albatross</dt> <dd>A sea bird</dd> <dd>A tasty snack at the movies</dd> </dl> <dl> <dt>Swallow</dt> <dd>Coconut delivery system</dd> </dl>
The semantic meaning of the two examples are different.
With the way I had it, the meaning was: a single list of definitions with two items, the first item having two descriptions for a single term, and the second with a single description. This meaning is the same as what it would be without the additional <dli> elements. The additional elements just serve to explicitly link the <dt> and <dd> elements together.
The second way is two lists of definitions, each with a single item, the item in the first list consists of a single term with two descriptions, and the item in the second list consists of a single term with a single item.
The second way lacks a single container to house everything. It would of course be possible to wrap it in a <div>, but that is a somewhat generic way of imposing additional meaning. You could just as well make the whole thing out of <div>s and <span>s.
*****************************************************
The discussion list for http://webstandardsgroup.org/
*****************************************************
