Logo of aks.htmlplanet.com

Links
Play Intro
New Stuff
Home
Poems
Jokes
Quotes
Wallpapers
Learn HTML
-Getting Started
-What are tags ?
-Hex Codes
-Body Tag
-Font Tag
-Useful Tags
-Tables
-Adding Images
-Linking Pages
-Adding Sounds

Suggestion Book



































DigiArc :: Owned By Aakash Ashvin Shah

 .:: Welcome to aks.htmlplanet.com !





 .:: Learn HTML > Body Tag ...


.:: As the name specifes, this tag gives all the information about how the appearance of the background of the webpage should be. What should be the color of the text, color of links and much more.

.:: Setting the background color

As simple as A B C. Try the following example :

< html >
< head >
< title >Any title< /title >
< /head > (You must know the above code by now).
< body bgcolor="#000000" >
< /body >
< /html >

Now you should understand what the above code states ! Right, it would change the background color to BLACK. Likewise set any color of background you want.
.:: NOTE : The above stated text written in bold (bgcolor="#000000") is a subcommand of the body tag. It is called an attribute of the body tag.

.:: Setting the text color

If you are sure that you are going to use majority of your text in a particular color, then you can use another attribute of the body tag. Consider the following example :

< Write all the neccesary codes here >
< body bgcolor="#000000" text="#FFFFFF" >
< End all the tags properly then >

This would give you WHITE colored text.
Likewise change the color of the text you want.

.:: Setting a background image

Same as above but instead of writing bgcolor="..." write the following background="..." Example :

< Write all the neccesary codes here >
< body background="image_name.extension" >
< End all the tags properly then >

where 'image_name' = name of the file.
and 'extension' = extension of that file say '.bmp' or '.gif' of '.jpg'.

.:: Want to keep the background fixed ?

If you want that your background should not move then add the following attribute to the body tag :

< Write all the neccesary codes here >
< body bgcolor="#000000" text="#FFFFFF" bgproperties="fixed" >
< End all the tags properly then >



Learn HTML > Body Tag







 .:: Buck Up ! You can do it !