W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > July to September 2011

RE: heading elements (h#) in tables?

From: Roger Hudson <rhudson@usability.com.au>
Date: Thu, 29 Sep 2011 08:12:08 +1000
To: "'Jeff Orchard'" <porch@sympatico.ca>, <w3c-wai-ig@w3.org>
Message-ID: <001501cc7e2b$ab2f9ea0$018edbe0$@com.au>
Hi Jeff,


While I can see how the use of header elements could help locate sections
within a large complex data tables, I have two quick comments. 

First, with this table it is obviously necessary to associate 'State
Revenue' and the each row headers (e.g. Specific Purpose) under state
revenue with the content of the data cells in this section. In my opinion,
the most reliable way of doing this is through the use of ids and headers.

Second, as much as I love NVDA and greatly admire the people who develop it,
NVDA is not the best screen reader for testing data tables. NVDA has
terrific support for many things, but data tables is not one of them.






From: w3c-wai-ig-request@w3.org [mailto:w3c-wai-ig-request@w3.org] On Behalf
Of Jeff Orchard
Sent: Wednesday, 28 September 2011 10:26 PM
To: w3c-wai-ig@w3.org
Subject: heading elements (h#) in tables?


I'm wondering if heading elements can be used to help make sense of a
complex table.


In this video (http://www.cfit.ie/html5_video/Table2.wmv), Josh O Connor is
leading Stewart Lawler (both from the NCBI) through a test of this table,
which uses an id/headers design:
http://www.wisc.edu/about/facts/budget.php#budgetallocation. About a minute
into the video Stewart is quite reasonably unsure of the role played by the
text in the 'th' element spanning this row:



  <th colspan="4" class="tbhead" scope="rowgroup">

    State revenue




Stewart then asks an interesting question, "That 'state revenue' column --
could that be given a header attribute as well, so that it would say
'heading level 3, State Revenue,' to indicate to the person, ok, this is
actually like a subsection of this table?" 


So, this code (assuming he meant a heading element):



  <th colspan="4" class="tbhead" scope="rowgroup">

      <h3>State revenue</h3>




It's never occurred to me to do that, but it validates. And testing in NVDA
I can skip from heading to heading in the table. 


Is this kosher? 


All the best,


Jeff Orchard

Information Analyst

Toronto, Canada

Received on Wednesday, 28 September 2011 22:13:36 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 13 October 2015 16:21:42 UTC