how to give transparent backgroud to html element with css code example Example: transparent background css for image background-color: rgba(255, 0, 0, 0.5);