Loading...

In this lesson, we discussed several methods to choose colors for color-related CSS properties.

Before you take your quiz, review what you've learned using the activity below.

Which of these Hex codes will produce blue?

  1. #000000
  2. #FF0000
  3. #00FF00
  4. #0000FF

Which of the Hex number pairs below is the highest value?

  1. A0
  2. BB
  3. E1
  4. 99

Which of these RGB codes would produce yellow?

  1. rgb(255,255,0)
  2. rgb(255,0,255)
  3. rgb(0,0,255)
  4. rgb(0,100,100)

Of these choices, which HSLA code would produce a color closest to white?

  1. hsla(2,100%,75%,1.0)
  2. hsla(125,75%,50%,1.0)
  3. hsla(65,100%,90%,1.0)
  4. hsla(25,50%,25%,1.0)

Which code excerpt below accurately sets a font to dark gray?

  1. style="hsl(90,90%,90%);"
  2. style="rgb(20,120,220);"
  3. style="color:#EEEEEE;"
  4. style="color:#333333;"

Which of the property value combinations below would produce this table?
Cell 1, 1 Cell 1, 2 Cell 1, 3
Cell 2, 1 Cell 2, 2 Cell 2, 3

  1. style="background-color:#00FF00; opacity:0.25;"
  2. style="background-color:rgba(0,255,0,0.50);"
  3. style="color:hsl(245,75%,50%,0.75);"
  4. style="color:#FF44FF; opacity:1.0;"

Summary

Questions answered correctly:

Questions answered incorrectly: