XHTML Reference
Tables
Standard Tables
Tables can be used both for tabulating data and for arranging the data on your page. The following tags are used to define tables.
- <table> </table>
defines a table.The following optional attributes can be specified on the <table> tag:
- border
- cellpadding
- cellspacing
- frame
- rules
- summary
- width
- core
- international
- event
The following attributes are deprecated but can still be used with the transitional DOCTYPE
- align
- bgcolor
- <caption> </caption>
defines a caption to display above or below the table.The following optional attributes can be specified on a <caption> tags:
The following attributes are deprecated but can still be used with the transitional DOCTYPE
- align
- <tr> </tr>
defines a row within a table.The following optional attributes can be specified on the <tr> tag:
- align
- char
- cellspacing
- charoff
- span
- valign
- core
- international
- event
- <td> </td>
defines a cell within a table row.The following optional attributes can be specified on the <td> tag:
- abbr
- align
- axis
- char
- charoff
- colspan
- headers
- rowspan
- scope
- valign
- core
- international
- event
The following attributes are deprecated but can still be used with the transitional DOCTYPE
- nowrap
- bgcolor
- width
- height
Column definitions
The following tags can be used to assign common attributes to columns within a table.
- <col> </col>
defines common attributes for one row. - <colgroup> </colgroup>
defines common attributes for a group of columns.
The following optional attributes can be specified on these tags:
- align
- char
- charoff
- span
- valign
- width
- core
- international
- event
Subdividing a Table
The following tags can be used to define head, body, and foot sections within a table.
- <th> </th>
defines a table header.The following optional attributes can be specified on the <th> tag:
- abbr
- align
- axis
- char
- charoff
- colspan
- headers
- rowspan
- scope
- valign
- core
- international
- event
The following attributes are deprecated but can still be used with the transitional DOCTYPE
- nowrap
- bgcolor
- width
- height
- <thead> </thead>
defines a fixed table header. - <tbody> </tbody>
defines a table body. - <tfoot> </tfoot>
defines a fixed table footer.
The following optional attributes can be specified on the <thead>, <tbody>, and <tfoot> tag:
- align
- char
- charoff
- span
- valign
- core
- international
- event


