Attributes allow modifying the behavior of a tag. They provide additional functionality to tags. Attributes area unit forever per the beginning tag. Attributes are like: name="value".

BODY TAG AND ITS ATTRIBUTES

The <BODY> tag forms the body of an HTML page. The BODY section od an HTML document is where all the action occurs.

THESE ATTRIBUTES ARE:-

  • BACKGROUND attribute

This attribute is used to add a background in the HTML document 
EXAMPLE:- 
<BODY BACKGROUND = "nature.jpg">
</BODY> 

  • BGPROPERTIES attribute 

It is used to style the background of a document.
EXAMPLE:-
<BODY BACKGROUND = "nature.jpg"
BGPROPERTES=FIXED>

  • BGCOLOR attribute 

It is used to add the background color of the text or we can also say, of the body.
EXAMPLE:- 
<BODY BGCOLOR = "color code"or"color name
 type the document text
 </BODY>

like:- <BODY BGCOLOR="MAROON">
           <BODY BGCOLOR="#800000">

  • TEXT attribute

EXAMPLE:-
<BODY TEXT="color code"or"color name">
 type the document text

</BODY>

  • LINK attribute

The LINK attribute specifies the colour of the unvisited link. Default colour link is blue (#0000FF).

  • VLINK attribute (visited link)

The attribute specifies the color of a visited link. A link is called visited if it has been clicked at least once. THE Default VLINK color is purple(#400040).

  • ALINK attribute (active link)

The ALINK attribute specification the colour of an active link. An active link is a link on which the mouse has been pressed but not released. ALINK attribute controls the colour of the active link. THE Default ALINK colour is Red (3FF0000).

  • LEFTMARGIN attribute (left-hand margin) (page layout)

The LEFT MARGIN attribute is used to set the left-hand margin of the web page. Margin increases the look of the web page.
EXAMPLE:- <BODY LEFTMARGIN="VALUE">

  • TOP MARGIN attribute (Top margin) (page layout)

The TOP MARGIN attribute is used to set the top margin of a web page.
EXAMPLE:- <BODY TOPMARGIN="VALUE">