How to set background image of a webpage ?
- We can easily add the background Image in the Html document which is to be displayed on a web page in HTML.
In this method there are two following steps:
a. Using the Background attribute:
- Open the existing HTML file in the text editor in which we want to use the background attribute or we have to type the Html code in any text editor.
- In HTML document move the cursor within the starting tag And, then type the background attribute as shown in the following block.
- While we have to add image just, we want to create path.
- We have to save the HTML code or HTML file in the text editor.
For example,
Output :

b. Using internal style sheet
- Open the existing HTML file in the text editor in which we want to use the background attribute or we have to type the Html code in any text editor.
- In HTML document we have to place the cursor in the head tag and define the starting and closing tag of the
This is wikitechy logo!