how to set background image in html div code example Example: make image background of div background-image: url("photographer.jpg");