body background color and text color


<body bgcolor="" text="" link="" alink="" vlink="">

Browser
Internet Explorer Firefox Opera
Type
Deprecated

The following attributes of the BODY element specifies the background color of the document and the color of the text.


<body bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#800080" alink="#ff0000">


Attribute Value Explanation
bgcolor=" " color code or name background color
text=" " color code or name text color
link=" " color code or name unvisited link color
vlink=" " color code or name visited link color
alink=" " color code or name active link color

The use of these attributes are deprecated. (Use CSS instead)

Tips and Notes

Use CSS instead of deprecated HTML. Please see the "Related Document" for details on CSS.


Example

<html>
<head>
<title>TAG index</title>
</head>
<body bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#800080" alink="#ff0000">



</body>
</html>