Table Tags



HTML CodeWhat it does
<table></table>Creates a table
<tr></tr>Sets a row in the table
<td></td>Sets a cell in the table
<th></th>Makes a table header (a normal cell with bold, centered text)
<table border=#>Sets width of border around the cells of the table
<table cellspacing=#>Sets amount of space between the cells of the table
<table cellpadding=#>Sets amount of space between a cell's border and its contents
<table width=# or %>Sets width of table, in pixels or as a percentage of document width
<tr align=?><td align=?>Aligns the things in the cell(s) left, right, or center
<tr valign=?><td valign=?>Aligns the things in the cell(s) to the top, bottom, or middle
<td colspan=#>Sets the number of columns a cell should spread
<td rowspan=#>Sets the number of rows a cell should spread
<td nowrap>Prevents the lines within a cell from being broken to fit