First page Back Continue Last page Graphics
Table basics
<table> </table> = defines a table
<tr> </tr> = defines a Table Row
<td> </td> = defines a Table Cell ("Table Data")
<th> </th> = defines a Table Header (special kind of Table Cell)
<caption> </caption> = defines a caption above the table
Attributes:
- summary - text description of the contents of the table (modifies <table>)
- bgcolor / background - specifies color/background of the table (modifies <table>,<td>,<tr>)
- border - specifies border width of table in pixels or % (modifies <table>)
- height - specifies height of the table or cell in pixels or % (modifies <table> and <td>)
- width - specifies width of the table or cell in pixels or % (modifies <table> and <td>)
- cellpadding - specifies distance between cell and content within cell(modifies <table>)
- cellspacing - specifies spacing between each cell (modifies <table>)
- align - specifies horizontal alignment (center/right/left - modifies <caption>,<table>, <td>)
- valign - specifies vertical alignment (top/middle/bottom - modifies <caption>,<tr>,<td>)