changing colour of text in css code example Example 1: css change text color p{ color: White; } Example 2: text color css .YourClass { color: #ff0000; }