#icse_html #html_by_vijay_baretha
ICSE CLASS 7 | CH-9: HTML PROGRAMMING | Part-9 | USING IMAGE AS A BACKGROUND
How to add Background Image in Html
In HTML, we can easily add the background Image in the Html document which is to be displayed on a web page by using the Background attribute of the Body tag:
Step 1: Firstly, we have to type the Html code in any text editor or open the existing Html file in the text editor in which we want to use the background attribute.
Step 2: Now, move the cursor within the starting body tag in our Html document. And, then type the background attribute.
Step 3: After that, we have to give the path of the image we want to add. So, type the path of the image in the background attribute. If our image is stored in the same directory in which HTML file is stored so type the following path: Body background="filename.extension"
If our image is stored in any other directory then type the correct path of that image, so that the browser can read the image easily.
If our image is on the internet then we can also add the image by using URL.
Download
0 formats
No download links available.
ICSE CLASS 7 | CH-9: HTML PROGRAMMING | Part-9 | USING IMAGE AS A BACKGROUND | NatokHD