Table Commands
border: the width of the border; can equal any number including 0; the default border for browers is border=0, which results in an unseen border

border color: affects only the color of the border (not the color of the table; the default border color for browsers is gray
<table border="0">
<tr><td>Aggie Horticulture1</td>
<td>Aggie Horticulture2</td></tr>
<tr><td>Aggie Horticulture3</td>
<td>Aggie Horticulture4</td></tr> </table>
Aggie Horticulture1 Aggie Horticulture2
Aggie Horticulture3 Aggie Horticulture4
<table border="3" bordercolor="#781738">
<tr><td>Aggie Horticulture1</td>
<td>Aggie Horticulture2</td></tr>
<tr><td>Aggie Horticulture3</td>
<td>Aggie Horticulture4</td></tr> </table>
Aggie Horticulture1 Aggie Horticulture2
Aggie Horticulture3 Aggie Horticulture4
<table border="20">
<tr><td>Aggie Horticulture1</td>
<td>Aggie Horticulture2</td></tr>
<tr><td>Aggie Horticulture3</td>
<td>Aggie Horticulture4</td></tr> </table>
Aggie Horticulture1 Aggie Horticulture2
Aggie Horticulture3 Aggie Horticulture4
horizontal alignment: the alignment of the table; can equal right, center, or left; the default horizontal alignment is left <table align="right" border="1">
<tr><td>Aggie Horticulture1</td>
<td>Aggie Horticulture2</td></tr>
<tr><td>Aggie Horticulture3</td>
<td>Aggie Horticulture4</td></tr> </table>
Aggie Horticulture1 Aggie Horticulture2
Aggie Horticulture3 Aggie Horticulture4
width: the width of the table; can be given in percent or in pixels; percent changes with the width of the browser window, pixels do not <table width="100" border="1">
<tr><td>Aggie Horticulture1</td>
<td>Aggie Horticulture2</td></tr>
<tr><td>Aggie Horticulture3</td>
<td>Aggie Horticulture4</td></tr> </table>
Aggie Horticulture1 Aggie Horticulture2
Aggie Horticulture3 Aggie Horticulture4
cellpadding: the space around cell contents; given in pixels <table cellpadding="5" border="1">
<tr><td>Aggie Horticulture1</td>
<td>Aggie Horticulture2</td></tr>
<tr><td>Aggie Horticulture3</td>
<td>Aggie Horticulture4</td></tr> </table>
Aggie Horticulture1 Aggie Horticulture2
Aggie Horticulture3 Aggie Horticulture4
cellspacing: the space between cells; given in pixels <table cellspacing="5" border="1">
<tr><td>Aggie Horticulture1</td>
<td>Aggie Horticulture2</td></tr>
<tr><td>Aggie Horticulture3</td>
<td>Aggie Horticulture4</td></tr> </table>
Aggie Horticulture1 Aggie Horticulture2
Aggie Horticulture3 Aggie Horticulture4
background color/image: inserts a color/image into the entire table (including the border) <table background="aggiehorticulture2.jpg" border="1">
<tr><td>Aggie Horticulture1</td>
<td>Aggie Horticulture2</td></tr>
<tr><td>Aggie Horticulture3</td>
<td>Aggie Horticulture4</td></tr> </table>
Aggie Horticulture1 Aggie Horticulture2
Aggie Horticulture3 Aggie Horticulture4
Table Row Commands
vertical alignment: controls the vertical alignment of the data within the table row; can equal top, middle, or bottom; the default vertical alignment is middle <table border="1">
<tr valign="bottom"><td>Aggie<br>Horticulture1</td>
<td>Aggie Horticulture2</td></tr>
<tr><td>Aggie Horticulture3</td>
<td>Aggie<br>Horticulture4</td></tr> </table>
Aggie
Horticulture1
Aggie Horticulture2
Aggie Horticulture3 Aggie
Horticulture4
background color: inserts a color into each table data cell for the entire table row <table border="1">
<tr bgcolor="#781738"><td>Aggie Horticulture1</td>
<td>Aggie Horticulture2</td></tr>
<tr><td>Aggie Horticulture3</td>
<td>Aggie Horticulture4</td></tr> </table>
Aggie Horticulture1 Aggie Horticulture2
Aggie Horticulture3 Aggie Horticulture4
Table Data Commands
horizontal alignment: the alignment of the data within the cell; can equal left, center, or right; the default horizontal alignment is left <table border="1">
<tr><td align="right">Aggie<br>Horticulture1</td>
<td>Aggie Horticulture2</td></tr>
<tr><td>Aggie Horticulture3</td>
<td>Aggie<br>Horticulture4</td></tr> </table>
Aggie
Horticulture1
Aggie Horticulture2
Aggie Horticulture3 Aggie
Horticulture4
rowspan: the row width of data cells; given in number of rows that the cell is to encompass <table border="1">
<tr><td rowspan="2">Aggie Horticulture1</td>
<td>Aggie Horticulture2</td></tr>
<tr><td>Aggie Horticulture3</td></tr>
<tr><td>Aggie Horticulture4</td>
<td>Aggie Horticulture5</td></tr>
</table>
Aggie Horticulture1 Aggie Horticulture2
Aggie Horticulture3
Aggie Horticulture4 Aggie Horticulture5
colspan: the column width of data cells; given in the number of cells that the cell is to encompass <table border="1">
<tr><td colspan="2">Aggie Horticulture1</td></tr>
<tr><td>Aggie Horticulture3</td>
<td>Aggie Horticulture4</td></tr>
</table>
Aggie Horticulture1
Aggie Horticulture3 Aggie Horticulture4
background color/image: inserts a color/image into the data cell <table border="1">
<tr><td bgcolor="#"781738">Aggie Horticulture1</td>
<td>Aggie Horticulture2</td></tr>
<tr><td>Aggie Horticulture3</td>
<td background="aggiehorticulture.jpg">Aggie Horticulture4</td></tr>
</table>
Aggie Horticulture1 Aggie Horticulture2
Aggie Horticulture3 Aggie Horticulture4