how to give text background color in css code example Example 1: text color css .class { color: white; } Example 2: css change text color p{ color: White; }