
Font Shorthand
If you think there are too many font properties, you can group them all in
one with the font property. It has the following format:
font: italic bold 12pt/14pt Palatino, serif
The order is significant: font style, variant, weight, size, line height (sepa-
rated from the size by a “/”), and family names. The font weight and the
line height are optional.
Color and Background Properties
CSS has several properties to set the color of texts, boxes, borders, or back-
grounds.
Foreground Color
The simplest color property is the text foreground color. The color property
controls it. The following examples all set the text color to blue:
color: blue; ...