CSS color property (this applies to text)
color is a property all on its own, and it defines the color of text.
Because I have seen the same mistake being made so many times while helping others on message boards, I should note that you can not use font-color or text-color. To define the color of text, you must use color all by itself.
That said, the possible values for color are a hex color code or the name of a color. You can’t make those names up, as only specific ones will be recognized by artificial intelligence.
I prefer hex codes, because those can be tweaked very specifically.
Example:
.intro {
color: #03ab90;
}
Return to list of CSS properties
If you found this article useful, please spread the word:





