Specifies padding by percent. Each side gets half. (So a padding of 20% would be split 10% top, 10% bottom, 10% left, 10% right.) I think it's a percentage of what the table would be without the padding.. but I'm not exactly sure.

This attribute specifies the amount of space between a cell's frame and its contents.

This attribute specifies the table's alignment. Values of "left" and "right" allow content after the table to wrap between the table and the opposite margin. See Images for more information on this 'float' behavior.

Samples:

Simple Table with frame="hsides" and rules="cols":

Cell A

Cell B

Cell C

Cell D

Cell E

Cell F

Cell G

Cell H

Same table with border="5" and cellspacing="20":

Cell A

Cell B

Cell C

Cell D

Cell E

Cell F

Cell G

Cell H

Table with border="5" and cellpadding="20":

Cell A

Cell B

Cell C

Cell D

Cell E

Cell F

Cell G

Cell H

Table with border="10" and width="100%":

Cell A

Cell B

Cell C

Cell D

Cell E

Cell F

Cell G

Cell H

Here is the code for the samples above:

<P>Simple Table with <CODE>frame="hsides"</CODE> and <CODE>rules="cols"</CODE>:</P>

Related Topics

Some notes on browser behavior:

Microsoft Internet Explorer and Netscape Navigator have differing interpretations on width and bgcolor for the <TABLE> tag. MSIE interprets the width by percent as a percentage of the viewport, instead of the available space as it should be. Netscape displays this correctly. Also, MSIE applies bgcolor on <TABLE> to the spacing between cells, which Netscape does not.

<TABLE>'s bgcolor sets the background color for all the cells in the table.

<TR>'s bgcolor sets the background color for all the cells in that row, painting over any colors from the <TABLE> tag.

<TD>'s and <TH>'s bgcolor set the background color for that individual cell and paints over any colors set in the <TABLE> tag as well as any colors set in the <TR> tag.

If no background color affects a table cell, it remains transparent.

Table with three rows and four columns and background colors set at three levels: All the cells in the table should be red, except for the cells in the first row. The first row's bgcolor attribute overrides the table's bgcolor, and the first row's cells should be blue except for the first cell. This cell's <TD> tag has itsbgcolor set to "green". Since the individual cell's colors override all others, the first cell in the first column should be green.