0

How can I add background image in HTML coding?

When I am writing its path or can be said as url it does not showing the desired output.

20th May 2020, 3:43 PM
Anurag Kushwaha
Anurag Kushwaha - avatar
2 Respostas
+ 8
background-img:URL(" "); try this code to get proper URL https://code.sololearn.com/Wy3lrXNwGsgJ/?ref=app
20th May 2020, 3:46 PM
ÃKR
ÃKR - avatar
0
On moziila firefox, right click the image and click 'Copy Image Location' then in your HTML code, in the body tag... <body background="url">
20th May 2020, 3:50 PM
Parthiv Pal
Parthiv Pal - avatar