how to add a black translucent layer in html code example Example: image opacity in html img { opacity: 0.5; }