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

  • IE
  • Cr
  • Sf
  • Fx
  • O

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"></body>

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)


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