CSS Course

Lesson 3: Colors and Backgrounds

Text Colors

Use the color property to set text colors using names, hex codes, or RGB.

Backgrounds

Use background-color or background-image to set backgrounds.

Example

body { background-color: lightblue; }
h1 { color: navy; }