The color CSS property sets the text color for an element. The value can be specified using a keyword (such as “black” or “white”), a hex code or an RGB value. For example, to set the text color of a paragraph element to red, the following CSS could be used:
p {
color: red;
}
You can also use hsl, hsla, rgba, and other color format.
p {
color: hsla(120, 100%, 50%, 0.5);
}
This will set the text color to a semi-transparent light green.
🔔 Subscribe for more videos like this : https://www.youtube.com/c/CodeCanvas?sub_confirmation=1