how to fix black opacity on image in html css code example Example: image opacity in html img { opacity: 0.5; }