473,785 Members | 2,261 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Colspans, rowspans, table accessibility

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 technology to be able to correctly
associate data with headers.

But as long as I have THs on all the headers, does, or should,
assistive technology be able to figure out multiple levels of headers,
as long as the headers are in the same column or row as the data,
*taking rowspans and colspans into account*? It would make life so
much easier! The table in Example 1 would need no special markup at
all, beyond the td/th distinction.

Example 2 is for another question.
--
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
4 2422
Harlan Messinger <hm************ *******@comcast .net> wrote in message news:<ac******* *************** **********@4ax. com>...
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 technology to be able to correctly
associate data with headers.

But as long as I have THs on all the headers, does, or should,
assistive technology be able to figure out multiple levels of headers,
as long as the headers are in the same column or row as the data,
*taking rowspans and colspans into account*? It would make life so
much easier! The table in Example 1 would need no special markup at
all, beyond the td/th distinction.


This might interest you, it goes into gory detail on that exact question:
http://www.ferg.org/section508/accessible_tables.html

--
Karl Smith.
Jul 20 '05 #2
Harlan Messinger wrote:
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 technology to be able to correctly
associate data with headers.

But as long as I have THs on all the headers, does, or should,
assistive technology be able to figure out multiple levels of headers,
as long as the headers are in the same column or row as the data,
*taking rowspans and colspans into account*? It would make life so
much easier! The table in Example 1 would need no special markup at
all, beyond the td/th distinction.

[snip]

Karl's reference looks very comprehensive. But here is the W3C statement:
http://www.w3.org/TR/html401/struct/tables.html#h-11.4

--
Barry Pearson
http://www.Barry.Pearson.name/photography/
http://www.BirdsAndAnimals.info/
http://www.ChildSupportAnalysis.co.uk/
Jul 20 '05 #3
go************@ kjsmith.com (Karl Smith) wrote:
Harlan Messinger <hm************ *******@comcast .net> wrote in message news:<ac******* *************** **********@4ax. com>...
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 technology to be able to correctly
associate data with headers.

But as long as I have THs on all the headers, does, or should,
assistive technology be able to figure out multiple levels of headers,
as long as the headers are in the same column or row as the data,
*taking rowspans and colspans into account*? It would make life so
much easier! The table in Example 1 would need no special markup at
all, beyond the td/th distinction.


This might interest you, it goes into gory detail on that exact question:
http://www.ferg.org/section508/accessible_tables.html


Section 11.4.1 in the HTML spec is so detailed, I guess I never looked
at 11.4.3, to which your reference directed my attention. If Ferg's
interpretation is correct, then table accessibility is *way* easier
than I've been treating it. In almost any case imaginable, for a given
data cell, the UA should be able to find the lowest-level row and
column header that goes with it, since it will virtually always be in
the same row or column as the data cell, and therefore one only has
mark up the header cells themselves with id and headers attributes.

But nowhere does Ferg justify his understanding that you can treat
rowspanned and colspanned header cells as "belonging" , for this
purpose, to each of the columns or rows that they span visually. I'm
uncertain because if you could, I would have expected the W3C to have
*mentioned* it somewhere! That's what bugs me. Ack.

I guess I can try to find out what several aural browsers *do* do, and
go with that.

--
Harlan Messinger
Remove the first dot from my e-mail address.
Veuillez ôter le premier point de mon adresse de courriel.
Jul 20 '05 #4
Harlan Messinger <hm************ *******@comcast .net> wrote:

The real-life state of affairs is just awful. I created the expanded
set of examples at http://gavelcade.com/table2.html, and tested it
with JAWS and IBM Home Page Reader. The results are discouraging
because the leave the sense that with current variations in the
technologies, I'm afraid that the best you can do might be either (a)
provide table accessibility formally, according to recommendations or
guidelines or regulations, ignoring what existing UAs do with it, or
(b) choose one UA to target, and hope other UAs do the same thing.

On the test page, ignore example 2. Examples 1 and 3 are as before.
Example 1 has no accessibility attributes, and Example 3 is identical
except for the "Country" header in the upper left-hand cell, which is
marked with scope="col".

Example 4 has id attributes in the column headings, and headers
attributes in the non-top-level column headings. It follows Ferg's
assumption that data cells will be associated with a TH found above
them or to the left of them, and that the TH's headers attributes will
then be followed to further associate the data cell with higher-level
headers.

Example 5 has both headers and data cells fully marked up with id and
headers attributes. Each data cell's headers attribute associates it
directly to all three levels of column headings, as well as to the row
heading. This could be redundant--data cells are associated with their
higher-level column headers both directly AND vis the lower-level
column headers to which they are associated.

Example 6 is like Example 5 except that the headers attributes in the
header cells themselves are removed, eliminating the redundancy noted
for Example 5.

Example 7 explicitly associates data cells only to the row header and
the lowest-level column header, rather than assuming that the UA will
figure out the lowest-level header as Example 4 did, but, like Example
4, leaves it to headers attributes within the header cells to provide
further associations to higher-level column headers.

The results listed below show what headers are spoken for (1) reading
a cell's contents; (2) changing row; (3) changing column. I refer to
"country" to indicate that the row header is read, and level1, level2,
and level3 for the three levels of column header. In every case, when
a header *has* been read, it has been the correct one for the cell.

Note that for HPR, Example 1, with no special markup at all, is
handled the best! The only less-than-optimal aspect of its handling of
Example 1 is that it reads all the column headers when the column is
changed, instead of just the headers that have changed.

JAWS

Example 1:
Read cell: level1 country
Change row: country
Change column: level1, whether it has changed or not

Example 3: same as Example 1

Example 4: same as Example 1

Example 5:
Read cell: level3 country level1 level2
Change row: country level1 level2
Change column: level3

Example 6: same as Example 5

Example 7:
Read cell: level3 country
Change row: country
Change column: level3

HPR

Example 1
Read cell: country level1 level2 level3
Change row: country
Change column: level1 level2 level3

Example 3: no headings read under any circumstances

Example 4: no headings read under any circumstances

Example 5:
Read cell: level1 level2 level3 country
Change row: level1 level2 level3 country
Change column: level1 level2 level3

Example 6:
Read cell: country level1 level2 level3
Change row: country level1 level2 level3
Change column: country level1 level2 level3

Example 7:
Read cell: country level3
Change row: country level3
Change column: country level3
--
Harlan Messinger
Remove the first dot from my e-mail address.
Veuillez ôter le premier point de mon adresse de courriel.
Jul 20 '05 #5

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

Similar topics

6
1864
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 "rowgroup" in the latter. Then there's the use of *id*, *headers*, and *axis*. For most purposes, I...
0
1327
by: Harlan Messinger | last post by:
This question is based on Examples 2 and 3 on http://gavelcade.com/table.html Beyond correct use of THs, this table is not specially marked up for accessibility--except for a scope="col" attribute for the "Country" header. And therein lies my question. It seems you can break accessibility table markup into three different levels: 1. None (except for THs), as long as the headers are the first cell in
39
5686
by: Zak McGregor | last post by:
Hi all Are there any good solutions to aligning form field names and input boxes without resorting to tables? I am struggling to do this nicely at the moment. Thanks Ciao Zak
3
2152
by: Peter Foti | last post by:
I have a table that contains 3 rows, and 2 columns. I would like a border that surrounds the entire table, and then a border separating the left and right columns, but no border separating rows. I was able to do this, but I wasn't sure if this is the best approach (or if there is a cleaner approach). I apologize in advance for posting code (but it's a small amount, so I hope you'll forgive me). Here's the styles I used: ...
16
2460
by: Michael Rozdoba | last post by:
I'm far from a CSS expert, but what I see of it I really like & I love keeping content & style separate. I also hate the way table layout produces convoluted bulky code. However when asked why one should use CSS rather than tables, particularly when tables work & browser support of CSS can be dodgy, especially in IE, I usually fail to come up with a concise & convincing argument :/ I've been having this long running discussion with a...
4
2984
by: waltborders | last post by:
Hi, Because the blind are unable to use a mouse, keyboard navigation is key. A major difficulty is that not all windows forms controls are keyboard 'tab-able' or 'arrow-able' or have "tab order". The application is built and the next step is to create the custom JAWS (Freedom Scientific)screen reader script to read the application. The application uses the accessibility properties for controls provided by C#. JAWS reads properties...
3
1565
by: Brian Cryer | last post by:
I posted this question recently to microsoft.public.dotnet.languages.vb but didn't get any answer. I'm hoping that someone here will be able to help me. I'm working on a project using VB.NET where the customer is very fussy about accessibility. One of the requirements that I'm trying to meet is that tables should have a summary, for example (and I've taken this from...
13
27507
by: Davo | last post by:
Hi Folks, There seems to be something about not using tables for layout, but use divs instead. I'm not sure if I've got this right. If the output looks like what you want, then it shouldn't matter what tags you use I would have thought, or am I missing something? tia, Davo
5
2681
by: leemarquis | last post by:
Is there a way to determine the correct cellindex of cells in a table when some of the cells have rowspans greater than 1. Perhaps correct is the wrong word - but when I have a cell with a rowspan greater than one, the cellindex of the the cells to its right and one row down are 1 less than I expect. This is causing my cell highlight function to behave incorectly as instead of highlighting say 3 cells in a column, it highlights the first and...
0
9646
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10350
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10097
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9957
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8983
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7505
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6742
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5386
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
2887
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.