W22e: Colors in HTML -------------------- Review Questions and Answers Objectives ---------- A. Explain the RGB color system used to display colors on computer monitors B. Explain the hexadecimal color system used to describe colors in HTML C. Identify and explain the concept of Web-safe colors D. Identify the syntax for setting background colors in HTML E. Identify the syntax for setting text colors in HTML Questions --------- (Answers are at the end fo the document.) 1. What are the three primary colors commonly used on computer monitors? [W22eA1s] 2. How are the three primary colors combined on computer monitors to produce more than 16 million colors? [W22eA2s] 3. How is the hexadecimal number system used to describe colors in HTML? [W22eB1s] 4. What was the purpose of designating "Web-safe" colors? [W22eC1s] 5. How many Web-safe colors are there? [W22eC2s] 6. Write HTML code to set the background color of the body of a Web page to color #FFFFCC, and the text to #333300. [W22eDE1s] Answers ------- 1. Red, Green, and Blue [W22eA1s] 2. There are 256 levels of each of the three primary colors. These can be combined in any way, giving 2^24 possible colors. [W22eA2s] 3. Two hexadecimal digits are used to represent each of the three primary colors. [W22eB1s] 4. Web-safe colors were intended to provide a set of colors that would be the same on 265-color monitors from different manufacturers. [W22eC1s] 5. 256 [W22eC2s] 6. Write HTML code to set the background color of the body of a Web page to color #FFFFCC, and the text to #333300. [W22eDE1s] Either:
or: