Alignment
Basics
Character Codes
Colors
CSS
DIVS
Forms
Frames
Links
Lists and Bullets
Meta Tags
Multimedia
Pictures
Spacing
Tables
Text
Background Picture
Basic Table
Cell Padding
Cell Spacing
Colspan Rowspan
Table Alignment
Table Colors
Table Colors
275
Table Color
Description
Table color gives your entire table one color which is the background color to all the cells. To define the color of your table, you will need to add the line BGCOLOR="#xxxxxx" to the <TABLE> tag, so the final result looks like this.
<TABLE BGCOLOR="#xxxxxx">
The xxxxxx, is replaced with the color code of your choice.
Code
<TABLE BGCOLOR="#C0C0C0" border="1"><TR>
<TD> The Background Is Gray</TD>
<TD> The Background Is Gray</TD>
</TR></TABLE>
Output
The Background Is Gray
The Background Is Gray
Practice
<TABLE BGCOLOR="#C0C0C0" border="1"><TR> <TD> The Background Is Gray</TD> <TD> The Background Is Gray</TD> </TR></TABLE>
Cell Color
Description
Cell color lets you define the background color of each individual cell on your table. To add color to one of your table cells, you will need to add the line BGCOLOR="#xxxxxx" to the <TD> tag that you want colored, so the final result looks like this.
<TD BGCOLOR="#xxxxxx">
The xxxxxx, is replaced with the color code of your choice.
Code
<TABLE border="1"><TR>
<TD BGCOLOR="#C0C0C0"> The Background Is Gray</TD>
<TD BGCOLOR="#4040FF"> The Background Is Blue</TD>
</TR></TABLE>
Output
The Background Is Gray
The Background Is Blue
YO HOMIES!!!!
Practice
<TABLE border="1"><TR> <TD BGCOLOR="#C0C0C0"> The Background Is Gray</TD> <TD BGCOLOR="#4040FF"> The Background Is Blue</TD> </TR></TABLE>
Advertisements (
add your ad
)