How to put a background image in HTML

You can specify a background image for nearly any HTML element. Use the CSS background-image property and the HTML style attribute to add a background image to an HTML element: <div style=”background-image: url(‘img_girl.jpg’);”></div> Additionally, you can set the background image in the <head> section of the <style> element. In the <style> element, specify the background … Read more