how to add a background image? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

how to add a background image?

31st May 2016, 1:24 PM
moon f
moon f - avatar
3 Answers
+ 1
You need CSS for that. For example, to add a background image to your body element: body { background-image: url("myimage.jpg"); } You can add the background-image CSS property to almost any HTML block element, such as divs, tables, paragraphs, etc.
31st May 2016, 8:43 PM
James Flanders
0
CSS, does that go with Html?
12th Jun 2016, 12:32 PM
Bramwell Simpson
Bramwell Simpson - avatar
0
write background-image on body{}
18th Jul 2016, 12:27 AM
Ageung Rayi Pamungkas
Ageung Rayi Pamungkas - avatar