How to add background image in html | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

How to add background image in html

How to add background image in html

27th Jun 2020, 7:04 AM
Vedant Nandwana 📴📵
Vedant Nandwana 📴📵 - avatar
10 Answers
+ 5
To add bg image to HTML, use that code in CSS: body { background-image: url("image url link"); } To add directly to an HTM document: <head> </head> <body> <style> body { background-image: url("image url link"); } </style> </body> I hope I will be useful to You!)
29th Jun 2020, 5:55 AM
joseffie
joseffie - avatar
+ 4
Get your img link from Dropbox and follow the normal procedure in the html tutorial
29th Jun 2020, 5:34 AM
Earth 🌎🌎
Earth 🌎🌎 - avatar
+ 3
<head> <style> Background-img: url("your image url"); </style> </head> <body> </body>
27th Jun 2020, 7:53 PM
Lina Ahmed Mohammed Nour Ali
Lina Ahmed Mohammed Nour Ali - avatar
+ 1
SORU_LOVE THANK YOU BRO
27th Jun 2020, 8:08 AM
Vedant Nandwana 📴📵
Vedant Nandwana 📴📵 - avatar
+ 1
@SORU_LOVE bro tell me by giving a code bit
27th Jun 2020, 8:27 AM
Vedant Nandwana 📴📵
Vedant Nandwana 📴📵 - avatar
+ 1
body{ background-image:url("your img url"); background-repeat:no-repeat; } Use css.
28th Jun 2020, 4:24 AM
N.A.W.Wickramasinghe
N.A.W.Wickramasinghe - avatar
0
I ALSO
27th Jun 2020, 8:08 AM
Vedant Nandwana 📴📵
Vedant Nandwana 📴📵 - avatar
0
Python will give you ad better chance becouse most of the search are done with atomation a python is one of the best for it
28th Jun 2020, 8:19 PM
Dmx
Dmx - avatar
- 2
سلام کمک کنید لطفاً
28th Jun 2020, 7:38 PM
Amin M
Amin M - avatar