View on GitHub

read-notes-corrected

Color in CSS

color image

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:

Values for red, green, and blue are expressed as numbers between 0 and 255

RGB

Hex values represent values for red, green, and blue in hexadecimal code.

HEX

Colors are represented by predefined names. However, they are very limited in numbe

Color Name


Note

### 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)