Usage note: Do not use this attribute, as it has been deprecated: the <table> element should be styled using CSS. To give a similar effect than the bgcolor attribute, the CSS property background-color should be used.

border

This integer attribute defines, in pixels, the size of the frame surrounding the table. If set to 0, it implies that the frame attribute is set to void.

This attribute defines the space between the content of a cell and the border, displayed or not, of it. If it is a pixel length, this pixel-sized space will be applied on all four sides; if it is a percentage length, the content will be centered and the total vertical space (top and bottom) will represent this percentage. The same is true for the total horizontal space (left and right).

Usage note: Do not use this attribute, as it has been deprecated: the <table> element should be styled using CSS. To give a similar effect than the border attribute, use the CSS property border-collapse with the value collapse on the <table> element itself, and the property padding on the <td>.

cellspacing

This attribute defines the size, in percentage or in pixels, of the space between two cells (both horizontally and vertically), between the top of the table and the cells of the first row, the left of the table and the first column, the right of the table and the last column and the bottom of the table and the last row.

Usage note: Do not use this attribute, as it has been deprecated: the <table> element should be styled using CSS. To give a similar effect than the border attribute, use the CSS property border-collapse with the value collapse on the <table> element itself, and the property margin on the <td> element.

frame

This enumerated attribute defines which side of the frame surrounding the table must be displayed. It may have the following values:

above

below

hsides

vsides

lhs

rhs

border

box

void

Usage note: Do not use this attribute, as it has been deprecated: the <table> element should be styled using CSS. To give a similar effect than the frame attribute, use the CSS properties border-style and border-width.

rules

This enumerated attribute defines where rules, i.e. lines, should appear in a table. It can have the following values:

none, which indicates the no rules will be displayed; it is the default value;

groups, which will make the rules to be displayed between row groups (defined by the <thead>, <tbody> and <tfoot> elements) and between column groups (defined by the <col> and <colgroup> elements) only;

rows, which will make the rules to be displayed between rows;

columns, which will make the rules to be displayed between columns;

all, which wil make the rules to be displayed between rows and columns.

This attribute defines an alternative text use to describe the table in user-agent unable to display it. Typically, it contents a description of it to allow visually impaired people, like blind people browsing the web using Braille screen, to get the information in it. If the information added in this attribute may also be useful for non-visually impaired people, consider using the <caption> instead. The summary attribute is not mandatory and may be omitted when a <caption> element fulfills its role.

Usage Note: Do not use this attribute, as it has been deprecated. Instead, use one of these way of describing a table:

In prose, surrounding the table (this is the less semantic-conveying way of doing it).