Creating Tables
How to create a basic table
Tables are not designed to help you lay out your entire site. It is a far better idea to use CSS to do this. Tables do still have their uses in presenting data though;<table>
<tr>
<td> Table cell </td>
</tr>
</table>
<tr>
<td> Table cell </td>
</tr>
</table>
This will create a table, however all that you will see is the content of its cells; there will be no borders unless you specify that they show up.
Additional attributes
It is possible to set many other attributes for a table. If you're styling your table extensively, you might consider using CSS to control its appearance instead.<table border="value" bordercolor="name
/ code" bordercolordark="darkname / darkcode" bordercolorlight="lightname / lightcode" align="alignment"
background="url" bgcolor="name" cellpadding="cp-value" cellspacing="csvalue" height="value /
percentage" width="value / percentage">
<tr>
<td> Table cell </td>
</tr>
</table>
<tr>
<td> Table cell </td>
</tr>
</table>
value - Set the border size to the given number.
name - Change the color of the text, or background to the color name. There are many different words which are recognised, such as aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, purple, red, silver, teal, white, and yellow.
code - Change the color of the text or background to the color indicated by code. Have a look at the web-safe colors table for different codes to use.
darkname / darkcode - The name or hex code, as above, for the bottom, and right hand borders of a table. This is not recognised by all browsers.
lightname / lightcode - The name or hex code for the top and left hand borders of a table. This is not recognised by all browsers.
alignment - The alignment of the table on the page; right, left or center.
url - The full or relative address of an image to use as a background.
cp-value - The space, in pixels, between the border of the cells and their contents.
cs-value - The space, in pixels, between the border of the cells and the adjacent cells / table border.
value - The width or height, in pixels, of the table.
percentage - The width or height of the table, as a percentage of the containing element.


