-
background-color
The background-color property sets the background color of an element.
Example:
background-color: #385170;
-
color
The color property sets the font color.
Example:
color: blue;
- a color name - like "red"
- a HEX value - like "#ff0000"
- an RGB value - like "rgb(255,0,0)"
-
font-family
Font determines how your text is rendered on the screen. It is important to pick one that is not only right for your website, but also easy to read.
In CSS there are five generic font families:- Serif
- Sans-serif
- Monospace
- Cursive
- Fantasy
Example:
font-family: monospace;
Both of the above color properties can be specified the following ways: