|
Changing Background Colors
Changing background color of whole page
If you want to change the background color of an entire page you'll need to define the background color inside the <body> tag.
Code:
<body bgcolor="#CCCCCC">
The "bgcolor=" code defines the background color of the page. It is important to note that you only use one instance of the <body> tag, if you want to define the color of the fonts and background, put all the code inside the same <body> tag.
Changing background color of whole table
If you want to change the background color of an entire table you'll need to define the background color inside the <table> tag.
Code:
<table bgcolor="#000099">
The "bgcolor=" code defines the background color of the table.
Changing background color of table column
If you want to change the background color of only a column within a table you'll need to define the background color inside the <td> tag.
Code:
<td bgcolor="#FFFF00">
The "bgcolor=" code defines the background color of the table column.
|