set image css by url w3school code example Example: how to add image with url in css background-image: url('images/my-image.png');