requested89
IS-IT--Management
I am designing my table and I want to use the <THEAD>, <TBODY> & <TH> tags correctly.
My page is set out as follows:
What is the correct way to group all this? Can I have more than one <TBODY> section per page?
Also as you will notice from the code below I have 2 mainHeaders which hierarchically are at the same level within the page. Is it therefore ok to have 2 <THEAD> tags on the same page?
Its a questionnaire which explains the names used BTW.
I kinda get the impression that there is no 100% correct way of doing this but at the same time doing it incorrectly may cause confusion from an accessibility point of view.
Thanks in advance,
Chris
My page is set out as follows:
Code:
ContentTitle1
SubHeader1-1
SubHeader1-2
SubContent1-1
SubContent1-2
ContentTitle2-2
SubHeader2-1
SubHeader2-2
SubContent2-1
SubContent2-2
What is the correct way to group all this? Can I have more than one <TBODY> section per page?
Also as you will notice from the code below I have 2 mainHeaders which hierarchically are at the same level within the page. Is it therefore ok to have 2 <THEAD> tags on the same page?
Its a questionnaire which explains the names used BTW.
Code:
<thead>
<th axis='mainHeader'>Section1</th>
</thead>
<th axis='subHeader'>SubSection1</th>
<tbody>
<td>Question1</td>
<td>Question2</td>
</tbody>
<th axis='subHeader'>SubSection2</th>
<tbody>
<td>Question1</td>
<td>Question2</td>
</tbody>
<thead>
<th axis='mainHeader'>Section2</th>
</thead>
<th axis='subHeader'>SubSection1</th>
<tbody>
<td>Question1</td>
<td>Question2</td>
</tbody>
<th axis='subHeader'>SubSection2</th>
<tbody>
<td>Question1</td>
<td>Question2</td>
</tbody>
I kinda get the impression that there is no 100% correct way of doing this but at the same time doing it incorrectly may cause confusion from an accessibility point of view.
Thanks in advance,
Chris