Re: Headings in lists [and tables]

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 UTC