Name

BGCOLOR — NN n/a IE 4 HTML n/a

Synopsis

BGCOLOR=”colorTripletOrName"

Optional

Establishes a fill color (behind the text and other content) for the cells contained by the TBODY element.

Example

<TBODY BGCOLOR="tan">

Value

A hexadecimal triplet or plain-language color name. A setting of empty is interpreted as "#000000" (black). See Appendix A for acceptable plain-language color names.

Default

Varies with browser, browser version, and operating system.

Object Model Reference

IE

[window.]document.all.elementID.bgColor

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.