Computer Applications

List and explain the different attributes of body tag.

HTML Intro

30 Likes

Answer

The different attributes of body tag are as follows:

  1. alink — It specifies the colour of an active link in a document.
  2. background — It specifies a background image for the document.
  3. bgcolor — It specifies the background colour of a document.
  4. link — It specifies the colour of unvisited links in a document.
  5. text — It specifies the colour of the text in a document.
  6. vlink — It specifies the colour of visited links in a document.
  7. leftmargin — It specifies the left margin in a document.
  8. 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">

Answered By

16 Likes


Related Questions