The <body> tag defines the main body of your document in which you placed all the content for example text, hyperlinks, images, tables, lists, etc. <body> element have number of attribute which control the overall document appearance. For example bgcolor controls the background color of the web page. The body tag must start immediately after the closing head tag and end directly before the closing html tag.
For example
<HTML>
<HEAD>
<TITLE> LEARNING HINTS</TITLE>
</HEAD>
<BODY>
THESE ARE THE MAIN CONTENTS
</BODY>
</HTML>
Following are the most important attribute of BODY Tag
BGCOLOR: background color of the page
BACKGROUND: background picture for the page
TEXT: color of the text on the page
LINK: color of links that haven't been followed yet
VLINK: color of links that have been followed
ALINK: color of links while you are clicking on them
BGPROPERTIES: if the background image should not scroll
TOPMARGIN: size of top and bottom margins
LEFTMARGIN: size of left and right margins
MARGINHEIGHT: size of top and bottom margins
MARGINWIDTH: size of left and right margins
onLoad: Script to run once the page is fully loaded
onUnload
onFocus
onBlur
==>Now write this code in any text editor and save the file test.html and then open this file in your web browser .
<HTML>
LEARNING HINTS This is very first line in my page with black background and white text color.