473,574 Members | 2,350 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Table headings

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

h.t.t.p.++myweb pages.comcast.n et/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 2102
"Harlan Messinger" <h.*********@co mcast.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.++myweb pages.comcast.n et/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.*********@co mcast.net> wrote:
For illustration purposes, I've put up a sample HTML table at

h.t.t.p.++myweb pages.comcast.n et/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">Aba lonia</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
21340
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 data look)? How do I add later column headings ? Tom
6
1856
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 column levels or row levels doesn't exceed two, since you can only specify "col" and "colgroup" as scope values in the former case, and "row" or...
4
2404
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 I've seen would lead to the conclusion that you need to use id and headers attributes on the headers and data cells, respectively, for assistive...
1
1404
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 displayed, it may need to be displayed as "Zip", "Postal Code", "Zip/Postal Code" etc. DataGrid/DataList allow headings to be created but it's usually...
7
2221
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
1690
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
18460
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 elements in the HTML to get everything just right. When you consider the class attribute on the DIV elements, there's not much size savings anymore...
6
2400
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 buttons to how it will be sorted( run the program and you'll see how its setup).The table will have a comboBox that includes the 4 headings. We have to...
22
2708
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 I am hoping that for someone out there has. Visually it looks like the following: Product Name__Week 1__Week 2__Week 3__Week 4__Week...
0
7742
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8089
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
5638
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5329
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3765
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3783
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2257
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1362
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1092
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.