As we have mentioned earlier in another tutorial, the <body> tag is the one
that contains every thing that will be shown in a web page: tables, frames,
forms, paragraphs, photos and anything else.
All this are entered between <body> and </body> tag.
HTML Attributes of the body tag
leftmargin establishes
An edge in the left side of the page (a blank space)
topmargin establishes
An edge in the top side of the page (a blank space).
<body topmargin="50">
This text is located at a distance of 50 pixelsof the top ofthe page
</body>
<body leftmargin="50">
This text is located at a distance of 50 pixelsto the leftof the page
</body>
You can copy this code into a notepad file, saving it as .html to view it best.
HTML Text color established by the body tag
<body text="red">
or <body text="rgb(255,0,0)">
This part of a code will establish the base font color as red, in the case another color is not specified within the paragraph tag
HTML Link color established by the body tag
Same as with the text you can set the viewed or not viewed links color with the help of the body tag.
<body link="white" vlink="black">
or <body link="rgb(255,255,255)" vlink="rgb(0,0,0)">
This method is used very rarely though, using the CSS (Cascading Style Sheets) being much easier and more practical.
HTML Attributes of the body tag
leftmargin establishes
An edge in the left side of the page (a blank space)
topmargin establishes
An edge in the top side of the page (a blank space).
An example would be:
<body topmargin="50">
This text is located at a distance of 50 pixelsof the top ofthe page
</body>
<body leftmargin="50">
This text is located at a distance of 50 pixelsto the leftof the page
</body>
You can copy this code into a notepad file, saving it as .html to view it best.
HTML Text color established by the body tag
<body text="red">
or <body text="rgb(255,0,0)">
This part of a code will establish the base font color as red, in the case another color is not specified within the paragraph tag
HTML Link color established by the body tag
Same as with the text you can set the viewed or not viewed links color with the help of the body tag.
<body link="white" vlink="black">
or <body link="rgb(255,255,255)" vlink="rgb(0,0,0)">
This method is used very rarely though, using the CSS (Cascading Style Sheets) being much easier and more practical.