Attribute Values
color_name- Specifies the background color with a color name (like "red")
hex_number- Specifies the background color with a hex code (like "#ff0000")
rgb_number- Specifies the background color with an rgb code (like "rgb(255,0,0)")
2 users like this post2 users like this post • gungun, vkshs2013
Attribute Values
"" - No borders around the table cells (the table could be used for layout purposes)
"1" - Add borders around the table cells (the table is NOT being used for layout purposes)
2 users like this post2 users like this post • gungun, vkshs2013
03-11-2014, 02:21 AM (This post was last modified: 03-11-2014, 02:38 AM by rajbr1981.)
cellspacing Attribute
Definition and Usage The cellspacing attribute of table is not supported in HTML5.
The cellspacing attribute specifies the space, in pixels, between cells.
Note: Do not confuse this with the cellpadding attribute, which specifies the space between the cell wall and the cell content.
Attribute Values
void The outside borders are not shown
above The top outside border is shown
below The bottom outside border is shown
hsides The top and bottom outside borders are shown
vsides The left and right outside borders are shown
lhs The left outside border is shown
rhs The right outside border is shown
box The outside borders are shown on all four sides
border The outside borders are shown on all four sides
1 user likes this post1 user likes this post • gungun
Definition and Usage
The rules attribute specifies which parts of the inside borders that should be visible.
For practical reasons, it may be better to not specify any rules, and use CSS instead.