Name
TEXT — NN all IE all HTML 3.2
Synopsis
TEXT=”colorTripletOrName"Optional
Establishes the color of body content in the document. Colors of
individual elements within the document can override the
document-wide setting. Because the default background color of
browsers varies widely with browser brand, version, and operating
system, it is advisable to set the BGCOLOR
attribute (or equivalent style sheet rule) in concert with the
document’s text color. This attribute is deprecated in favor of
the{color:} style sheet rule.
Example
<BODY BGCOLOR="#FFFFFF" TEXT="#c0c0c0">...</BODY>
Value
A hexadecimal triplet or plain-language color name. See Appendix A for acceptable plain-language color names.
Default
#000000 (black).
Object Model Reference
- NN
[window.]document.fgColor
- IE
[window.]document.fgColor
[window.]document.body.text
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access