473,396 Members | 1,935 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 2094
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Thomas Jerkins | last post by:
When I write a create table SQL statement I want to add some information about the column heading of each column. How does the exact syntax for the create table look like (which includes this column...
6
by: Harlan Messinger | last post by:
When a table has multiple layers of column and/or row headings, as we know, there are a couple of options for making the table accessible. Using a *scope* attribute is fine as long as the number of...
4
by: Harlan Messinger | last post by:
I've had this in the back of my head for a while. Take a look at Example 1 on http://gavelcade.com/table.html There are three levels of column headings. All table accessibility discussions...
1
by: Bob | last post by:
When displaying data from the database, very often the field names are not suitable so custom headings have to be created, For example, the column storing zip code may be named zip, but when...
7
by: Seth | last post by:
I have a table of the structure below: Delivery Product 101 A 101 B 101 C 102 A 102 E 103 C 104 A
5
by: Seth | last post by:
I have one table of the form: Delivery Product 101 A 101 B 101 C 102 A 102 E 103 C 104 A
117
by: phil-news-nospam | last post by:
Is there really any advantage to using DIV elements with float style properies, vs. the old method of TABLE and TR and TD? I'm finding that by using DIV, it still involves the same number of...
6
by: carlos123 | last post by:
I have a programming assignement that i have been working on for quite some time now. I need your guys' help. My assignement is to great a table with data in it. and it will have a combobox and 2...
22
kcdoell
by: kcdoell | last post by:
I have been trying for the last several days to create a query that will give me all of the values I need to create a report. Background: The report is different than anything I have done but...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.