469,352 Members | 2,107 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,352 developers. It's quick & easy.

Table headings

For illustration purposes, I've put up a sample HTML table at

h.t.t.p.++mywebpages.comcast.net/hmessinger/table-headers.html

(sorry for the munging) that shows a typical arrangement for a printed
table. I used <th> for the row and column headings. If I were using axis and
id attributes, I'd put them in these cells and refer to them in header
attributes. But I'm not sure what to do about the cell reading "Countries"
or about the cell reading "Population". These are more or less
"meta-headers". Should they be <th> as well? Should they have axis, header,
and id attributes? Or should they be left as plain vanilla <td>? (The
*appearance* of these cells, of course, is to be handled by CSS.)

--
Harlan Messinger
Remove the first dot from my e-mail address.
Veuillez ôter le premier point de mon adresse de courriel.

Jul 20 '05 #1
2 2021
"Harlan Messinger" <h.*********@comcast.net> wrote in message
news:bm************@ID-114100.news.uni-berlin.de...
For illustration purposes, I've put up a sample HTML table at

h.t.t.p.++mywebpages.comcast.net/hmessinger/table-headers.html

(sorry for the munging) that shows a typical arrangement for a printed
table. I used <th> for the row and column headings. If I were using axis and id attributes, I'd put them in these cells and refer to them in header
attributes. But I'm not sure what to do about the cell reading "Countries"
or about the cell reading "Population". These are more or less
"meta-headers". Should they be <th> as well? Should they have axis, header, and id attributes? Or should they be left as plain vanilla <td>? (The
*appearance* of these cells, of course, is to be handled by CSS.)


Look at the example in the HTML spec here:

http://www.w3.org/TR/html401/struct/...-header_cell-2

(scroll down a little and you will see a picture similar to your case).
They used <th>, which seems appropriate for your case as well.

Regards,
Peter Foti
Jul 20 '05 #2
"Harlan Messinger" <h.*********@comcast.net> wrote:
For illustration purposes, I've put up a sample HTML table at

h.t.t.p.++mywebpages.comcast.net/hmessinger/table-headers.html

(sorry for the munging)
Why on &Planet; do you munge Web addresses? If you don't want the page
to be indexed for search engines (which might find copies of Usenet
articles), use robot exclusion in a <meta> tag. Not that I would worry
more about such issues than about causing trouble to people who are
asked to help for free with Web authoring problems.
that shows a typical arrangement for a printed table.
Printed? In what sense? It contains a normal table, which can be
spoken, displayed on screen, and naturally printed too.
I used <th> for the row and column headings.
Fine, though it is debatable whether the country names are just
headings. The semantic distinction between <td> and <th> is not crystal
clear in the specifications. The strange thing is that there is a
crucial (in principle) statement that only appears in a DTD comment:
"TH is for headers, TD for data, but for cells acting as both use TD"
If I
were using axis and id attributes, I'd put them in these cells and
refer to them in header attributes.
Why would you use them? Only some complex tables need them. For normal
tables, the scope attribute is sufficient for making the associations
between header cells and data cells clear. And you can use it in <td>
elements too - the specification contains examples thereof. So I would
use <td scope="row">Abalonia</td> instead of <th>Abalonia</th>.
But I'm not sure what to do
about the cell reading "Countries" or about the cell reading
"Population". These are more or less "meta-headers". Should they be
<th> as well?


The look pretty normal column headers to me, <th scope="col"> and
<th scope="colgroup">, respectively.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Harlan Messinger | last post: by
4 posts views Thread by Harlan Messinger | last post: by
1 post views Thread by Bob | last post: by
7 posts views Thread by Seth | last post: by
5 posts views Thread by Seth | last post: by
117 posts views Thread by phil-news-nospam | last post: by
6 posts views Thread by carlos123 | last post: by
1 post views Thread by CARIGAR | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.