Version: Level 1
Compability: IE4+ N4+
| aqua #00FFFF rgb(0,255,255) | gray #808080 rgb(128,128,128) | silver #C0C0C0 rgb(192,192,192) | navy #000080 rgb(0,0,128) |
| black #000000 rgb(0,0,0) | green #800000 rgb(128,0,0) | teal #008080 rgb(0,128,128) | olive #808000 rgb(128,128,0) |
| blue #0000FF rgb(0,0,255) | lime #00FF00 rgb(0,255,0) | white #FFFFFF rg The background-color property allows you to select the background color. Since, you can assign the background-color to individual elements, you can have more than one background color on a page. This property is not inherited. ExamplesCode:p {background-color: silver} Language(s): CSS2Code:<span style="background-color: yellow;">A yellow background</span>Output:A yellow backgroundLanguage(s): CSS2See Also: |