< prev | next >

bgcolor < Attributes < Home

bgcolor

The bgcolor attribute defines the background color for a visual element. Its value should be in the form "#RRGGBB", where RR, GG, and BB are single-byte hexadecimal values for the red, green, and blue color channels, respectively. This is the same form used to specify colors in HTML.

Supporting Tags

The bgcolor attribute is currently supported by the <map> and <graph> tags. The default value of the bgcolor attribute depends upon the tag that it modifies.

Examples

bgcolor="#000000" <!-- black -->
bgcolor="#FFFFFF" <!-- white -->
bgcolor="#FF0000" <!-- bright red -->
bgcolor="#000080" <!-- medium blue -->
bgcolor="#CCCCCC" <!-- light gray -->

Notes

Although any 24-bit color can be specified in the bgcolor attribute, it usually a good idea to stick to the subset of "web-safe" colors that are supported across the majority of browsers and operating systems. This ensures that your colors will look right on 8-bit displays.

Confidential. Copyright © 2002, Oklahoma Climatological Survey. All Rights Reserved.
Send questions or comments concerning this web page to
wolfie@ou.edu.