1.

Which of the following CSS3 Color Feature like RGB color but adds an alpha channel value to specify the opacity of the color?(a) RGB(b) RGBa(c) RGBaplha(d) AlphaRGBThe question was posed to me in an international level competition.This key question is from CSS Color Values in chapter CSS Fundamentals, Colors and Styling of CSS

Answer»

The correct answer is (B) RGBa

To explain I would say: An RGBa is specified via a function style rgba(r,G,b,a) value, where colors r, g, and b are specified as a decimal value from 0 to 255 or a PERCENTAGE from 0 to 100%, and the alpha channel value for defining OPACITY is a number between 0 (fully transparent) and 1 (fully opaque). Values OUTSIDE this range will be rounded up or down to fit the closest value.



Discussion

No Comment Found

Related InterviewSolutions