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