In CSS, you can specify the color of any element with the color property.For example:
p { color: red;}Here's the syntax:
| Property | Value | Description |
| color: | <color keyword> | Set color to specified value |
| color: | #rrrgggbbb | Set color in HTML-style hex notation |
| color: | rgb(rrr,ggg,bbb) | Set color using values from 0-255 for each parameter |
| color: | rgb(rrr%,ggg%,bbb%) | Specify color as percentages to rgb() |
| color: | inherit | Inherit color from parent |
(Note that rrr, ggg, and bbb are just placeholders for whatever actual numbers you would use.)