but background color in css code example Example 1: css set background color body { background-color: red; } Example 2: css background color body {background-color: coral;}