The bgcolor attribute is used to control the background of an HTML element, specifically page and table backgrounds. bgcolor can be placed within several of the HTML tags. However, we suggest you only use it for your page’s main background and in tables. For additional background styling, check out CSS Backgrounds. The HTML to change the background color is simple:
<body bgcolor=”color name OR RGB Number OR Hex Number”>
Images can be placed within elements of HTML. Tables, paragraphs, and body may all have a background image. To accomplish this, we use the background attribute as follows.
When your HTML element is larger than the dimensions of your picture, the image simply begins to repeat itself.
The tag is used to apply font face, size, and color to the text on your web document. The tag should not be used instead the style attribute should be used.