User:Timeshifter/Sandbox103
Jump to navigation
Jump to search
See also: User:Timeshifter/Sandbox112.
- H63: Using the scope attribute to associate header cells and data cells in data tables.
- HTML th scope Attribute.
Table from H63 page. HTML format with scope attributes
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
Name | Phone# | Fax# | City |
---|---|---|---|
Joel Garner | 412-212-5421 | 412-212-5400 | Pittsburgh |
Clive Lloyd | 410-306-1420 | 410-306-5400 | Baltimore |
Gordon Greenidge | 281-564-6720 | 281-511-6600 | Houston |
Same wikitable format but without scope=col and scope=row
Name | Phone# | Fax# | City |
---|---|---|---|
Joel Garner | 412-212-5421 | 412-212-5400 | Pittsburgh |
Clive Lloyd | 410-306-1420 | 410-306-5400 | Baltimore |
Gordon Greenidge | 281-564-6720 | 281-511-6600 | Houston |