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