The bgcolor attribute is used to control the background of an HTML elmement, specifically page body and table backgrounds. Following is the syntax to use bgcolor attribute with any HTML tag.
Following is the syntax to use bgcolor attribute with any HTML tag.
<tagname bgcolor="color_value"…> |
This color_value can be given in any of the form.
<!– Give color name –>
<!– Give hex value –>
<!– Give color value in RGB terms –>
|
Example:
Here are the examples to set background color of an HTML tag.
<!– Give color name –>
<!– Give hex value –>
<!– Give color value in RGB terms –> |
This will produce following result:
|
To Become more comfortable – Do Online Practice
The post Html Background Colors appeared first on .