how to color font in css code example Example 1: text color css .YourClass { color: #ff0000; } Example 2: css font color color:#ffffff;