How to used body tag and its attributes?
The <BODY> tag forms the body of an HTML page.The BODY section of an HTML document is where all the action occurs.In a page , the ,<BODY>tag comes after the<HEAD> tag.Other than <HTML>and <HEAD> tags all other tags and the entire text of the HTML page are written within the <BODY>.........</BODY>tag.You can specify the background color and image,color of text ,links ,visited and activated links and margins of text in the HTML page using the <BODY> tag.
<BODY> tag some attributes(attributes provides additional information about the element and an element can have one or more attributes.) that allow you to specify the background color and image of the page , color of the text ,links ,visited and activated links and margins of text in the HTML page.
THE Attributes of <BODY>tag:
1.BACKGROUND.
2. BGCOLOR.
4. BGPROPERTIES.
5.LINK.
6. ALINK.
7. VLINK
SETTING THE BACKGROUND IMAGE FOR A PAGE USING THE BACKGROUND ATTRIBUTE:
The BACKGROUND attribute can be used to set a background image for a page . When you use this attribute to point to an image file for the background of a page, that image is tiled across the browser window providing a background for the document.
FORMAT OF BACKGROUND ATTRIBUTE:
<BODY BACKGROUND="image file name.jpg">
type your words here
</body>
How to used body tag and its attributes?
Reviewed by Unknown
on
09:48
Rating:
No comments: