CSS Property : color Explained !

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

Advertisement

I like to hear from you about this !!

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.