W3C home > Mailing lists > Public > whatwg@whatwg.org > February 2007

[whatwg] Definition list and tables: what's the difference ?

From: David Latapie <david@empyree.org>
Date: Fri, 16 Feb 2007 06:11:49 +0100
Message-ID: <20070216061149229696.d2b2b9c3@empyree.org>
On Tue, 13 Feb 2007 15:52:23 +0100, Alexey Feldgendler wrote:
> On Tue, 13 Feb 2007 15:40:13 +0100, David Latapie <david at empyree.org> wrote:
> 
>> My humble point: <table> can do everything <dl> can, whilst the reverse
>> is not true. He who can do more can do less.
> 
> <table> canot do this:
> 
> <dl>
> <dt>computer</dt>
> <dd>An electronic device for information processing.</dd>
> <dt>driver</dt>
> <dd>A computer program taking care of direct communication with a 
> peripherial 
> device.</dd>
> <dd>A person who drives a vehicle.</dd>
> </dl>
> 
> How would you represent this in a <table> without abusing the very idea of 
> columns?

<table>
<caption>Mini-glossary of computing</caption>
<thead>
<tr>
	<th>Definition</th>
	<th colspan="2">Term</th>
</tr>
</thead>
<tbody>
<tr>
	<th><dfn>Computer</dfn></th>
	<td>An electronic device for information processing.</td>
	<td />
</tr>
<tr>
	<th><dfn>Driver</dfn></th>
	<td>A computer program taking care of direct communication with a 
peripherial 
device.</td>
	<td>A person who drives a vehicle.</td>
</tr>
</tbody>
</table>

<table>
<caption>Mini-glossary of computing</caption>
<thead>
<tr>
	<th>Definition</th>
	<th colspan="2">Term</th>
</tr>
</thead>
<tbody>
<tr>
	<th><dfn>Computer</dfn></th>
	<td colspan="2">An electronic device for information processing.</td>
</tr>
<tr>
	<th><dfn>Driver</dfn></th>
	<td>A computer program taking care of direct communication with a 
peripherial 
device.</td>
	<td>A person who drives a vehicle.</td>
</tr>
</tbody>
</table>

Now, is it abusing of columns, I really don't know. If a column is a 
presentation definition, maybe. If it just a container for a key or a 
value, I don't think so. After all, CSS encompasses everything in 
boxes, including characters.
-- 
</david_latapie>             U+0F00
http://blog.empyree.org/en (English)
http://blog.empyree.org/fr (Fran?ais)
http://blog.empyree.org/sl (Slovensko)
Received on Thursday, 15 February 2007 21:11:49 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:32 UTC