Computer Applications
Answer
The different attributes of body tag are as follows:
- alink — It specifies the colour of an active link in a document.
- background — It specifies a background image for the document.
- bgcolor — It specifies the background colour of a document.
- link — It specifies the colour of unvisited links in a document.
- text — It specifies the colour of the text in a document.
- vlink — It specifies the colour of visited links in a document.
- leftmargin — It specifies the left margin in a document.
- topmargin — It specifies the top margin in a document.
The attributes are used with <BODY> tag in the following way:
<BODY ALINK = "BLUE" VLINK = "YELLOW" BACKGROUND = "ANIMALS.JPG" BGCOLOR = "BLACK" TEXT = "WHITE" LEFTMARGIN = "60" TOPMARGIN = "80">