+ 2

How could i add background image in my html code?

I have only done html .so it is possible to add background Image ?if yes then tell me how. https://code.sololearn.com/Wj2rFKb2X19s/?ref=app

3rd Jun 2019, 5:50 AM
Saurabh Kumar
Saurabh Kumar - avatar
4 odpowiedzi
+ 8
For more information , refer to this lesson : https://www.sololearn.com/learn/CSS/1104/ Thanks
3rd Jun 2019, 7:31 AM
Prince PS[Not_Active]
Prince PS[Not_Active] - avatar
+ 4
There are many available to set a background image but the easiest one is at a body tag<body background:url(" ")>
4th Jun 2019, 4:55 PM
M.MANIVANNAN
M.MANIVANNAN - avatar
+ 1
I guess you want to add background to body tag. So, try this: body { background-image: url("your-image"); background-attachment: fixed; background-size: cover; background-position: 0px 0px; /*optional, in case you need some adjustment*/ }
3rd Jun 2019, 6:24 AM
777
777 - avatar
0
<img src="img name.jpg"
3rd Jun 2019, 12:16 PM
godfrey