473,396 Members | 1,792 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 header id use

I have questions regarding the use of the "id" attribute in table
headers where there are multiple contiguous tables.
<http://my.vbe.com/~mbrought/test_tables/events.html>

Is it permissible and/or good practice to cite the header id from a
previous table where the header information is the same? More
importantly, will screen readers pick up the proper header information
from the previous table?

The basic format is:

<!-- First Table -->
<table>
<tbody>
<tr>
<th class="c202" id="td1">event</th>
<th class="c203" id="td2" abbr="sponsor">sponsoring org.</th>
<th class="c204" id="td3" abbr="begins">begin date</th>
<th class="c204" id="td4" abbr="ends">end date</th>
<th class="c207" id="td5">location</th>
</tr>

<tr>
<td class="c208" headers="td1">data data data</td>
<td class="c208" headers="td2">data data/td>
<td class="c209" headers="td3">data</td>
<td class="c209" headers="td4">data</td>
<td class="c210" headers="td5">data</td>
</tr>
</tbody></table>

<!-- Second Table -->
<table>
<tbody>
<tr>
<td class="c208" headers="td1">data data data</td>
<td class="c208" headers="td2">data data/td>
<td class="c209" headers="td3">data</td>
<td class="c209" headers="td4">data</td>
<td class="c210" headers="td5">data</td>
</tr>
</tbody></table>

This is still a work in progress. Any other comments are welcome. I
would also appreciate knowing if there are any rendering problems with
various browsers.

--
Matt Broughton
Only relatives are absolute.
Jul 20 '05 #1
2 2506
Matt Broughton wrote:
I have questions regarding the use of the "id" attribute in table
headers where there are multiple contiguous tables.
<http://my.vbe.com/~mbrought/test_tables/events.html>

Is it permissible and/or good practice to cite the header id from a
previous table where the header information is the same?
Did you read the spec? It's too late for me to look it up, but I
doubt that this is a robust solution. If you make it a large table
instead of 2 small ones, you can simply use the scope attribute for
the th elements.
<!-- First Table -->
<table>
<tbody>
<tr>
<th class="c202" id="td1">event</th>
<th class="c203" id="td2" abbr="sponsor">sponsoring org.</th>
<th class="c204" id="td3" abbr="begins">begin date</th>
<th class="c204" id="td4" abbr="ends">end date</th>
<th class="c207" id="td5">location</th>
</tr>

<tr>
<td class="c208" headers="td1">data data data</td>
<td class="c208" headers="td2">data data/td>
<td class="c209" headers="td3">data</td>
<td class="c209" headers="td4">data</td>
<td class="c210" headers="td5">data</td>
</tr>
</tbody></table>

<!-- Second Table -->
<table>
<tbody>


don't start a second table here.

</tbody>

<tbody>
<!-- etc. -->

--
Brian
follow the directions in my address to email me

Jul 20 '05 #2
In article <AEaGb.27326$VB2.63486@attbi_s51>,
Brian <us*****@julietremblay.com.invalid-remove-this-part> wrote:
Matt Broughton wrote:
I have questions regarding the use of the "id" attribute in table
headers where there are multiple contiguous tables.
<http://my.vbe.com/~mbrought/test_tables/events.html>

Is it permissible and/or good practice to cite the header id from a
previous table where the header information is the same?


Did you read the spec? It's too late for me to look it up, but I
doubt that this is a robust solution. If you make it a large table
instead of 2 small ones, you can simply use the scope attribute for
the th elements.


Doh!! I had read the spec quite a few times before and I missed the
obvious. It clearly states that the id and class attributes are
document wide identifiers. Sometimes a new day and fresh eyes work
wonders.

I also reread the sections on headers and scope. I will change over to
scope. It seems to fit my simple table structure well.

Thank you.

--
Matt Broughton
Only relatives are absolute.
Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: george1069 george1069 | last post by:
Hi, I'm repeating <fo-table> using loop and there is <fo-table-header> to generate a title for each of the table generated. In one of the output pages, a new table is generated near to the...
2
by: Thomas R. Hummel | last post by:
Hello, I am currently working on a monthly load process with a datamart. I originally designed the tables in a normalized fashion with the idea that I would denormalize as needed once I got an...
2
by: rmandel | last post by:
I'm very, very new to .Net but have been doing C/C++ for years. I'm having a great deal of difficulty with something that should be simple. Here's what I'm trying to do.... Display three...
2
by: dfdavis.mtu | last post by:
I have a table that I dynamically fill with data from a database for medical companies to be able to determine if their patients meet certain criteria. However they want a fixed header for it so...
7
by: Kamal | last post by:
Hello all, I have a very simple html table with collapsible rows and sorting capabilities. The collapsible row is hidden with css rule (display:none). When one clicks in the left of the...
0
by: Romulo NF | last post by:
Greetings again everyone Recently i´ve been asked to develop a script to allow filtering in the content of the table, with dinamic options based on the own content. Example: a table with the name of...
5
by: Romulo NF | last post by:
Greetings, I´m back here to show the new version of the drag & drop table columns (original script ). I´ve found some issues with the old script, specially when trying to use 2 tables with...
12
by: Michael.Z | last post by:
Anyone who can help: Given a Table.h file I am writing a Table.c file. I keep getting the compile error: previous declaration of Table was here / conflicting types for I think the...
5
by: jrod11 | last post by:
hi, I found a jquery html table sorting code i have implemented. I am trying to figure out how to edit how many colums there are, but every time i remove code that I think controls how many colums...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...

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.