how to set the opacity of a color in css code example Example: background color with opacity h1 {background-color:rgba(255,0,0,0.3);}