Computer Science, asked by paramveersinghinda8, 6 months ago

Which attribute sets an image as the background web page​

Answers

Answered by thestickmanlegendspr
0

Answer: The <img> is a tag which helps setting an image in a webpage but there are several attributes like -

1- Source

2- Align

3- Width

4- Height

5- Border

So , to add an image to the background you need to write the following code after <title> tag -

   <body background = "filename.jpg" >

Explanation:

To copy the filename of your image right click on it and click on properties and in general you would see the name click on it and copy it using ctrl+c

and paste it inside the double quotations and i hope it works.

If your Image is not getting displayed then try using a best coding website which i prefer which is repl.it in which you can upload wanted images and then it can easily find from the uploaded source.

Similar questions