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