Document Body tags

BODY tag attributes

The BODY tag encapsulates your document content. Prior to HTML 3.2, there were no attributes for the BODY element. HTML 3.2 includes attributes first developed by Netscape for its Navigator browser. These attributes allow you to control the overall appearance of the document by specifying a background color or background image (BGCOLOR, BACKGROUND), and the color of text, links, visited and activated links (TEXT, LINK, VLINK, ALINK). You can specify the color values as RGB value pairs in hexadecimal notation (e.g.. white would be "#FFFFFF") or use one of the sixteen color names HTML 3.2-conformant browsers understand:

aquagraynavysilver
blackgreenoliveteal
bluelimepurplewhite
fuschiamaroonredyellow

Here are some BODY attribute usage examples:

<BODY BACKGROUND="mars.gif" TEXT="#ffffff">
<BODY BGCOLOR="white" TEXT="black" LINK="red">

Next Slide