add table background color
Website Design
Website Promotion
Graphic Design
Programming
Free Software
Computer Tips
Discount Stores
|
This site provides users with the information about html table background color, how to add html table background color, add html table cell background color, add web page table background color, guide, and more.
If you think that this site is helpful, please recommend your friends to visit our site.
The attribute bgcolor allows you to specify the background of a table with different color.
To add a background color to a table cell, you will need to add the following code in the <TD> tag
BGCOLOR = red
The example is as follows:
<TABLE BORDER="0" CELLPADDING="4" ALIGN="left" WIDTH="50%">
<TR>
<TD BGCOLOR=red WIDTH="10%">test</TD>
<TD BGCOLOR=green>test1</TD>
</TR>
</TABLE>
Now let's see the above code in action in the following:
If you like to change the background color for the entire table, just use the bgcolor property in the <table> tag. The following is an example
<TABLE BORDER="0" CELLPADDING="4" ALIGN="left" WIDTH="50%" bgcolor=blue>
<TR>
<TD WIDTH="10%">test</TD>
<TD >test1</TD>
</TR>
</TABLE>
Now let's see the above code in action in the following:
|