BODY Tag

The BODY container consists of all contents (tags, attributes and other information) to be displayed in the web page.Actually this is the main element of the HTML Document.The BODY container is placed immediately below the HEAD container and before the closingtag as shown below :

 <html>
 <head>
 <title> Title of the Document </title>
 </head>
 <body>
 All contents of the document
 </body>
 </html>

The BODY tag is the second and the largest part of an HTML document.It has many attributes associated with it, which specify th background, colour, margins, etc. of the web page. These attributes are used with beginning BODY tag. These attributes are discussed below:

  • Background Attributes
  • Colour Attributes
  • Margins Attributes