Single Choice Question

  1. CSS style "body{color: #ff5722;}" use
    1. Keyword
    2. Short hex code
    3. Hex code
    4. RGB function
  2. CSS style "body{background-color: black;}" use
    1. Keyword
    2. Short hex code
    3. Hex code
    4. RGB function
  3. Color value of "rgb(255,255,255)" can be replaced with
    1. Black
    2. #000
    3. #FFF
    4. Blue
  4. HSL color model is used to represent colors in the form of
    1. Hue, Saturation, Luminance
    2. Hex, Saturation, Luminance
    3. Hue, Saturation, Lightness
    4. Hex, Saturation, Lightness
  5. The CSS property to specify the foreground color of an element is
    1. color
    2. background-color
    3. foreground-color
    4. text-color
  6. The CSS property to specify the background color of an element is
    1. background-color
    2. background-image
    3. background-repeat
    4. background-position
  7. If we want to show one image and repeating it horizontally, we use the
    1. background-repeat:no-repeat
    2. background-repeat:repeat-x
    3. background-repeat:repeat-y
    4. background-repeat:repeat

True or False Question

  1. The color property can be used to set the background that takes a color value.
  2. The background-color property is used to set the foreground color of an element.
  3. The background-position property is used to control the position of the background image.
  4. you can use the value repeat-x to repeat the background image vertically along the y-axis.
  5. The hex color value #ffffff can be also be written as #fff
  6. The rgb() function specify the amount of red, green, and black component of the color.

Definition of Term

  1. HSL color model
  2. RGB color model

Short Answer

  1. How many ways to specify color in CSS?