1 answer
Best answer
In order to add a background image on an HTML element you need to use two things:
- the HTML style attribute and
- the CSS background-image property:
<div style="background-image: url('background.jpg');">
codelikepro
· 19 Aug 2022
Report
Was this answer helpful?
Thanks for the feedback.
Sign up free to save answers and ask your own doubts
Your answer
Log in or create a free account to answer this question.