HTML » table » bgcolor

The bgcolor attribute of <table> is deprecated in HTML 4.01.

The bgcolor attribute is used to set the background color of a table. It can be either a named color (such as red) or a six character hexadecimal RGB color code (such as #e26fa9). This will be treated as the default color, since individual tr and td cells can also have their color set. This attribute was deprecated effective with version 4.0. However, it remains in wide use and is recognized by most browsers. You are now to use style sheets.