The background attribute of the <BODY background=imageURL> tag refers to the location of the image file to be used as the background image. Click here to review how the following document appears in a Web browser.
The bgcolor attribute of the <BODY bgcolor=value> tag sets the background color of a Web page. The value of the bgcolor attribute is either a predefined color or the corresponding hexadecimal representation. Some of the popular predefined colors include: black, red, blue, green, white, cyan, magenta, and yellow.
Click here to review how the following document appears in a Web browser.
Similarly, the text attribute of the <BODY text=value> tag sets the body text color of a Web page. Click here to review how the following document appears in a Web browser.
It is also possible to change the colors used to represent hypertext links by assigning values to the link (i.e., unvisited link), vlink(i.e., visited link), and alink (i.e., active link) attributes.
|