The table tag: <table>

The table tag is similar to a body tag. It determines the overall look of your table, so it is very important. The attributes of the table tag can be put in any order. We'll put each one on a separate line for the purposes of our discussion. Only use the ones you need. Don't try to learn or remember all ofthis now. We're making a list and we'll learn what everything does one step at a time.

<table      (Open your table)
align="??"
bgcolor="??"
background="URL_of_image"
transparency="??%" (WebTV only)
border="??"
cellspacing="??"
cellpadding="??"
height="??"
width="??">

    The rest of your table goes here
</table>    (Close your table)

You can align your table in your sig or on your page. Use: align="left", align="center" or align="right". The default is "left".

Your table can have its own background color (bgcolor). Replace ?? with the color you want.

Your table can have its own background image. Replace ?? with the URL of an image.

You can make your table partly transparent, so your page background will "show through". Choose a percentage from 1-100. This attribute is WebTV only.

Your table can have a border. Replace ?? with a number of pixels. The default is "1", but WebTV usually "sees" "0"

Cellspacing will put a border around each cell. Replace ?? with the number of pixels you want. The default is "1".

Cellpadding is the amount of space around your information inside each cell. Replace ?? with a number of pixels.

Your table can have a fixed height & width in pixels. This is useful for putting an image that is one size on top of a background with a larger size.

You can also enter width as a percentage.

This is a lot of information, but we'll discuss each of these attributes in detail. Next, we'll discuss the <tr> & <td> tags.

As always, questions and comments are welcome.

Happy tabling,
Gnubee

Table Talk

The table tag: <table>