CSS Colors


  1. Which of the following Selector selects an element if it’s the only child of its parent with its type?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    :only-of-type


  1. Which of the following Color Format is a CSS colors can also be defined using the keyword rgb, followed by three numbers between 0 and 255, contained in parentheses and separated by commas, with no spaces between them?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    RGB color values can also be defined using percentages. The format is the same, except that the numbers are replaced by percentage values between 0% and 100%.



  1. Which of the following Color Format is a CSS3 HSL value with a fourth value to set the alpha channel value for the color to define the opacity of the element?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    HSLa Color


  1. Which of the following Color Format are a 17 defined colors under CSS 2.1?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    maroon (#800000) red (#ff0000)
    orange (#ffA500) yellow (#ffff00)
    olive (#808000) purple (#800080)
    fuchsia (#ff00ff ) white (#ffffff)
    lime (#00ff00) green (#008000)
    navy (#000080) blue (#0000ff)
    aqua (#00ffff) teal (#008080)
    black (#000000) silver (#c0c0c0)
    gray (#808080)
    Other color keywords may be commonly used but are ad hoc in their definition.



  1. Which of the following Selector same as :firstline; changed under CSS3 to make pseudoelements obvious?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    ::first-line