1.

Which of the following is the Color Format that is the CSS3 HSL value with a fourth value to set the alpha channel value for the color to define the opacity of the element?(a) HSLa Color(b) HSL Color(c) RGBa Color(d) RGB ColorI got this question at a job interview.This intriguing question originated from Strings and Keywords topic in chapter CSS Properties, Elements, Functions & Tables of CSS

Answer»

The correct choice is (a) HSLa Color

The explanation: An HSLa is SPECIFIED via a function style hsla(hue,saturation, lightness, alpha), where hue, saturation, and lightness are the same as standard HSL() VALUES, and the alpha channel value for DEFINING opacity is a number between 0 (fully transparent) and 1 (fully opaque).



Discussion

No Comment Found

Related InterviewSolutions