W3C home > Mailing lists > Public > www-html@w3.org > August 2002

Re: Headings in lists [and tables]

From: Curtis C. Hovey <chovey@cox.net>
Date: 20 Aug 2002 15:37:59 -0400
To: www-html <www-html@w3.org>
Message-Id: <1029872279.1914.65.camel@luna.junk.org>

On Tue, 2002-08-20 at 13:55, Tantek =?ISO-8859-1?B?xw==?=elik wrote:
> Why not <caption> instead of <h>?
> 
> After all, a list is in many ways a one-dimensional table.  In fact some
> "lists" are even called "tables", e.g. a "Table of Contents" is really a
> hierarchical list.

I'm fine with that something, anything that will let me write valid
markup that actually reflects the author's intent.

The rest that follows is a tirade that you really don't need to read or
reply to:

Tables are an extension of the list.  It has more elements to express
it's complex nature, and it was extended over many HTML versions.  Lists
have been ignored.  <caption>, <thead>, <tbody>, <tfoot> are by intent
useful in all lists.  The definition list could be represented as a
table while maintaining it's different mean.  The table itself could be
derived from list instead of as a separate structure.  The follow
examples extend the existing markup to arrive at the form of the table
and illustrate the table elements in a list:

<ol>
  <li>item</li>
</ol>

<dl>
  <li>
    <h>term or heading</h>
    <d>data, definition, or cell</d>
    <d>more data</d>
  </li>
</dl>

<table>
  <li>
    <h>term or heading</h>
    <d>data</d>
    <d>more data</d>
  </li>
  <li>
    <h>another term or heading</h>
    <d>data</d>
    <d>data</d>
  </li>
</table>

<table>
  <lhead>
    <caption>one markup for all lists and tables</caption>
    <li>
      <h>headings</h>
      <h>1 data column</h>
      <h>2 data column</h>
    </li>
  </lhead>
  <lbody>
    <li>
      <h>term or heading</h>
      <d>data</d>
      <d>data</d>
    </li>
    <li>
      <h>another term or heading</h>
      <d>data</d>
      <d>data</d>
    </li>
  </lbody>
  <lfoot>
    <li>
      <d span="3">foot notes</d>
    </li>
  </lfoot>
</table>

<ol>
  <lhead>
    <caption>list title</caption>
  </lhead>
  <lbody>
    <li>item</li>
  </lbody>
  <lfoot>
    <i>information accurate to +/- 1%</i>
  </lfoot>
<ol>

From my perspective, the structure of a definition list is no different
from a table, the key knowing the meaning is the parent list element.

-- 
__C U R T I S  C. H O V E Y__________________
chovey@cox.net
No matter where you go...there you are
Received on Tuesday, 20 August 2002 15:38:00 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:52 GMT