Table controls are just controlling factors in the make up of the table, these are:
-
BGCOLOR="#000000"
- This will give each cell in your table a background colour, it is possible to give each Row a different colour. -
WIDTH="50%"
- This sets the width of the coloumn as a percentage, this one will take up half of the page. -
BORDER="20"
- This sets the width of the border, this setting will give it a border of 20 pixels. -
CELLSPACING="10"
- This sets the vertical and horizontal distance between each cell. -
CELLPADDING="10"
- This sets the vertical space each cell's text has. -
BORDERCOLOR="#008000"
- This will set the colour of the border. -
ALIGN="CENTER"
- This sets where the table will be positioned on the page, you can also use left and right.
<TABLE BORDER="1" WIDTH="50%" BGCOLOR="#F8FF00" ALIGN="CENTER" BORDERCOLOR="#FF0700"
CELLSPACING="10" CELLPADDING="10">
<TR>
<TD> ITEM 1 </TD>
<TD> ITEM 2 </TD>
<TD> ITEM 3 </TD>
</TR>
<TR>
<TD> ITEM 4 </TD>
<TD> ITEM 5 </TD>
<TD> ITEM 6 </TD>
</TR>
</TABLE>
ITEM 1 | ITEM 2 | ITEM 3 |
ITEM 4 | ITEM 5 | ITEM 6 |
Comments