W3C home > Mailing lists > Public > www-html@w3.org > October 2003

Re: Tables

From: Scott Rippon <Scott.Rippon@arts.monash.edu.au>
Date: Thu, 30 Oct 2003 10:22:56 +1100
To: www-html@w3.org
Message-id: <3FA04BD0.9080109@arts.monash.edu.au>

Dear Chris

Thanks for your feedback.  The recursive nature of the problem is an 
issue that I had thought about when I was writing.  Especially the 
question of what if you want sub-sub headings below your sub-headings. 
My thoughts were that if you wanted to introduce sub-sub headings this 
might be the right point to create separate individual tables for each 
of the sub-sections.

I hadn't suggested creating separate tables for each sub-section earlier 
because in tables where sub-sections only have one or two rows creating 
individual tables may be overkill.

I've reformatted my initial example to incorporate your idea about 
embedding tables within tables.  I hope I have this correctly.

I think that embedding tables may cause problems for people reading with 
screen readers.  If the reader reads table row one from left to right 
what will happen is that all of the column one data for sub-section 1 
will be read out then all of the column two data for sub-section 1 will 
be read out and so on.  If there are many many rows of data I think 
users may get very lost within you table.

Kind regards,
Scott Rippon.

<table
  summary="This table is an example of a table containing subsections. 
In our example
		  the 2 sub-section each contain sub-section headings.">
   <caption>
    Example Table 1
   </caption>
   <thead>
     <tr>
       <th abbr="TH1" scope="col"><p>Table Heading 1</p></th>
       <th abbr="TH2" scope="col"><p>Table Heading 2</p></th>
       <th abbr="TH3" scope="col"><p>Table Heading 3</p></th>
     </tr>
   </thead>
   <tbody>
     <tr>
       <td>
         <table summary="This table contains the column one data for 
Sub-section Heading 1.">
           <thead>
             <tr>
               <th abbr="Sub Sect 1" scope="col"><p>Sub-section Heading 
1</p></th>
             </tr>
           </thead>
           <tbody>
             <tr>
               <td><p>S1C1R1</p></td>
             </tr>
             <tr>
               <td><p>S1C1R2</p></td>
             </tr>
           </tbody>
         </table>
       </td>
       <td>
         <table summary="This table contains the column two data for 
Sub-section Heading 1.">
           <thead>
             <tr>
               <th abbr="Sub Sect 1" scope="col"><p>Sub-section Heading 
1</p></th>
             </tr>
           </thead>
           <tbody>
             <tr>
               <td><p>S1C2R1</p></td>
             </tr>
             <tr>
               <td><p>S1C2R2</p></td>
             </tr>
           </tbody>
         </table>
       </td>
       <td>
         <table summary="This table contains the column three data for 
Sub-section Heading 1.">
           <thead>
             <tr>
               <th abbr="Sub Sect 1" scope="col"><p>Sub-section Heading 
1</p></th>
             </tr>
           </thead>
           <tbody>
             <tr>
               <td><p>S1C3R1</p></td>
             </tr>
             <tr>
               <td><p>S1C3R2</p></td>
             </tr>
           </tbody>
         </table>
       </td>
     </tr>
   </tbody>
   <tbody>
     <tr>
       <td>
         <table summary="This table contains the column one data for 
Sub-section Heading 2.">
           <thead>
             <tr>
               <th abbr="Sub Sect 2" scope="col"><p>Sub-section Heading 
2</p></th>
             </tr>
           </thead>
           <tbody>
             <tr>
               <td><p>S2C1R1</p></td>
             </tr>
             <tr>
               <td><p>S2C1R2</p></td>
             </tr>
           </tbody>
         </table>
       </td>
       <td>
         <table summary="This table contains the column two data for 
Sub-section Heading 2.">
           <thead>
             <tr>
               <th abbr="Sub Sect 2" scope="col"><p>Sub-section Heading 
2</p></th>
             </tr>
           </thead>
           <tbody>
             <tr>
               <td><p>S2C2R1</p></td>
             </tr>
             <tr>
               <td><p>S2C2R2</p></td>
             </tr>
           </tbody>
         </table>
       </td>
       <td>
         <table summary="This table contains the column three data for 
Sub-section Heading 2.">
           <thead>
             <tr>
               <th abbr="Sub Sect 2" scope="col"><p>Sub-section Heading 
2</p></th>
             </tr>
           </thead>
           <tbody>
             <tr>
               <td><p>S2C3R1</p></td>
             </tr>
             <tr>
               <td><p>S2C3R2</p></td>
             </tr>
           </tbody>
         </table>
       </td>
     </tr>
   </tbody>
</table>
Received on Wednesday, 29 October 2003 18:41:36 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:58 GMT