Recap
In the 5th CSS lesson, we learned that:
- We set the foreground color using
color
. - We set the background color using
background-color
. - We can set the color using named colors. For example: white, black.
- We can set the color using RGB(A) values, where we set the red, green, and blue color channels, and optionally use the alpha channel for transparency.
color: rgb(255, 0, 255);
color: rgba(255, 0, 255, 100%);
- We can set the color using red, green, blue, and optionally alpha channels in hexadecimal format.
color: #ff00ff;
color: #ff00ff64;
- We can set the color using HSL(A) values, where we set the hue, saturation, lightness, and optionally the alpha channel.
In the next lesson, we will learn how to add, set, and modify fonts!
Instructions
Congratulations on completing the 5th CSS lesson!
Start programming for free
8/8