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