Web-Approved Colors
Web colors are specified in terms of how much red, green, and blue make up each color. By taking only a percentage of each color, the computer can mix those portions into a color it can read. There are many ways to specify Web colors. We've already learned that you can type in a color's name, but the computer only recognizes 17 colors that way, so it's kind of limiting. You can give rbg values, but who wants to waste brain space memorizing value combinations? The simplest way to get a variety of colors to use in your web page is to use hex codes.
Hex codes are 6-digit codes that represent the red, green, and blue components of the different colors. All you have to do is go to an online color chart, select your color choice, and key in the appropriate hex code.
Practice Session
That said, let's go to Webmonkey for kids. See if you can find the hex codes for the colors you used in your last practice session. Go back to your CSS and key in these hex codes in place of the color names you used. You can find different colors if you wish. Remember to leave a space before the code, and to include the # sign and ;.