div css text color code example Example 1: text color css .class { color: white; } Example 2: css font color color:#ffffff;