changing color of text in div code example Example 1: text color css .YourClass { color: #ff0000; } Example 2: css font color color:#ffffff;