Question about html | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Question about html

how can I set a background image in html? I found how to put an image in the body but I didn't find how to put an image only in one part(in a table, in <div>... ) and not in the whole page I need to put a background image in the <header> section. Please help me

11th Mar 2019, 10:57 PM
Regidark magnetico
Regidark magnetico - avatar
2 Answers
+ 2
Many options but i recommend using css: header{ background-image: url('path/to/image'); }
11th Mar 2019, 11:11 PM
bxhd
+ 1
Thank you very much!
11th Mar 2019, 11:24 PM
Regidark magnetico
Regidark magnetico - avatar