User:Timeshifter/Sandbox112
Appearance
See discussion:
A 4th table has been added. Plus all the tables have the row number column.
- H63: Using the scope attribute to associate header cells and data cells in data tables | Techniques for WCAG 2.0. "For simple tables that have the headers in the first row or column then it is sufficient to simply use the TH elements without scope."
- H51: Using table markup to present tabular information | Techniques for WCAG 2.0. "Simple tables generally have only one level of headers for columns and/or one level of headers on the rows."
- HTML th scope Attribute.
Table from H63 page. HTML format with scope attributes
[edit]| Name | Phone# | Fax# | City | |
|---|---|---|---|---|
| 1. | Joel Garner | 412-212-5421 | 412-212-5400 | Pittsburgh |
| 2. | Clive Lloyd | 410-306-1420 | 410-306-5400 | Baltimore |
| 3. | Gordon Greenidge | 281-564-6720 | 281-511-6600 | Houston |
<table border="1">
<caption>Contact Information</caption>
<tr>
<td></td>
<th scope="col">Name</th>
<th scope="col">Phone#</th>
<th scope="col">Fax#</th>
<th scope="col">City</th>
</tr><tr>
<td>1.</td>
<th scope="row">Joel Garner</th>
<td>412-212-5421</td>
<td>412-212-5400</td>
<td>Pittsburgh</td>
</tr><tr>
<td>2.</td>
<th scope="row">Clive Lloyd</th>
<td>410-306-1420</td>
<td>410-306-5400</td>
<td>Baltimore</td>
</tr><tr>
<td>3.</td>
<th scope="row">Gordon Greenidge</th>
<td>281-564-6720</td>
<td>281-511-6600</td>
<td>Houston</td>
</tr>
</table>
Converted to wikitable format using class=wikitable
[edit]| Name | Phone# | Fax# | City | |
|---|---|---|---|---|
| 1. | Joel Garner | 412-212-5421 | 412-212-5400 | Pittsburgh |
| 2. | Clive Lloyd | 410-306-1420 | 410-306-5400 | Baltimore |
| 3. | Gordon Greenidge | 281-564-6720 | 281-511-6600 | Houston |
Same wikitable format but without scope=col and scope=row
[edit]| Name | Phone# | Fax# | City | |
|---|---|---|---|---|
| 1. | Joel Garner | 412-212-5421 | 412-212-5400 | Pittsburgh |
| 2. | Clive Lloyd | 410-306-1420 | 410-306-5400 | Baltimore |
| 3. | Gordon Greenidge | 281-564-6720 | 281-511-6600 | Houston |
Same wikitable format but without scope=col and scope=row. And no row headers
[edit]| Name | Phone# | Fax# | City | |
|---|---|---|---|---|
| 1. | Joel Garner | 412-212-5421 | 412-212-5400 | Pittsburgh |
| 2. | Clive Lloyd | 410-306-1420 | 410-306-5400 | Baltimore |
| 3. | Gordon Greenidge | 281-564-6720 | 281-511-6600 | Houston |