how to change the opacity of the background image in css code example Example: image opacity in html img { opacity: 0.5; }