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

How do i add a background image in html

24th Aug 2020, 6:33 PM
ϚϴϴḼḬṌ
ϚϴϴḼḬṌ - avatar
13 Answers
+ 2
thats easy go to you css thing then type background image then boom
24th Aug 2020, 6:38 PM
🙈Mantis🙈
🙈Mantis🙈 - avatar
+ 2
<body background="url">
24th Aug 2020, 6:54 PM
Satyam Mishra
Satyam Mishra - avatar
+ 2
{ Background-image:url("image what ever u want thats url"); }
3rd Sep 2020, 9:59 AM
Prameela
+ 1
first go to css then add the background-image https://code.sololearn.com/WADRlf7Lvn6S/?ref=app
24th Aug 2020, 6:37 PM
𝓼𝓬𝓸𝓻𝓹
𝓼𝓬𝓸𝓻𝓹 - avatar
+ 1
//Tadios stop spamming by advertising your codes in others' question post.
24th Aug 2020, 6:42 PM
RKK
RKK - avatar
+ 1
My problem is my background won't load it's just white
24th Aug 2020, 6:47 PM
ϚϴϴḼḬṌ
ϚϴϴḼḬṌ - avatar
0
And im not on a computer
24th Aug 2020, 6:47 PM
ϚϴϴḼḬṌ
ϚϴϴḼḬṌ - avatar
24th Aug 2020, 9:08 PM
JaScript
JaScript - avatar
0
background-image: url(“Image URL”)
26th Aug 2020, 6:37 AM
AXMN
0
note: use this: .yourstyle { background-image: url(“image URL”) }
26th Aug 2020, 6:51 AM
AXMN
0
{ background-image: url(" "); } This is the right syntex for using it. You need to apply valid link in url section to make the image aaper in background.
26th Aug 2020, 11:21 AM
Siddharth bore
0
To add background image to your whole page, use background-image:url(""); And enter image address, to add a html background image.
3rd Sep 2020, 10:13 AM
Siddharth bore