|
Choose a lesson here: HTML Tags: **HTML Tag List Lesson1:Head Tag Lesson2:Body Tag Inside Body: Lesson3:Background Color Lesson4:Background Image Text Manipulation: Lesson5:b,u,i,center,br Lesson6:hr,ur,li,ol Lesson7:h1,space,div Lesson8:pre,font Lesson9:strike,power Images: Lesson10:Inserting Images
|
|
How to set background image in the page? Use Background Tag!
- This is an attribute for body tag used for setting image or picture as a background.
The value for the attribute is the path of the image file. In this example we have a image file named test.jpg in the same directory of the html file, so we use the path as ./test.jpg It is mainly used when we want a common background a lines/stripes etc. The image in our example, test.jpg is a very small one as shown here So a very small image can be used to set the background of such a big page |