color
The color property allows you to specify the color of text inside an element. You can specify any color in CSS in one of three ways:
-
rgb values These express colors in terms of how much red, green and blue are used to make it up
-
HEX These are six-digit codes that represent the amount of red, green and blue in a color, preceded by a pound or hash #
-color name There are 147 predefined color names that are recognized by browsers
-
Color pickers can help you find the color you want
-
It is important to ensure that there is enough contrast between any text and the background color (otherwise people will not be able to read your content