How do you set the text color of an element?
With the color property:
css
selector {
color: red;
}The color can be set in any supported format, red, #ff0000, rgb(), hsl(), and so on.
Short Answer
Interview readyPremium
A concise answer to help you respond confidently on this topic during an interview.