background color for all h1 elements in css code example Example: add a background color for all h1 elements in css all. h1 {background-color:#FFFFFF;}