HTML HSL MCQs
HTML HSL MCQs : This section focuses on color "HSL" of Html. These Multiple Choice Questions (mcq) should be practiced to improve the Html skills required for various interviews (campus interview, walk-in interview, company interview), placement, entrance exam and other competitive examinations.
1. The value of h parameter in hsl ranges from
A. 0^o to 90^o
B. 0^o to 180^o
C. 0^o to 240^o
D. 0^o to 360^o
View Answer
Ans : D
Explanation: h parameter in HSL represents the color in degrees which ranges from 0 degrees to 360 degrees.
2. What is the value of h in hsl for red color?
A. 0degree
B. 120degree
C. 180degree
D. 270degree
View Answer
Ans : A
Explanation: For the red color, the hue has a value of 00 value.
3. What is the value of h in hsl for green color?
A. 0degree
B. 120degree
C. 240degree
D. 270degree
View Answer
Ans : B
Explanation: For green color, the hue has a value of 120degree value.
4. What is the value of h in hsl for blue color?
A. 0degree
B. 120degree
C. 240degree
D. 270degree
View Answer
Ans : C
Explanation: For blue color, the hue has a value of 240degree value.
5. Which of the following is correct regarding s parameter in hsl in HTML?
A. s stands for saturation.
B. s determines the intensity of the color
C. None of a and b is correct.
D. Both a and b are correct.
View Answer
Ans : D
Explanation: In hsl, s i.e. value of saturation is used for determining the intensity of the color.
6. What color does 100% saturation give?
A. pure color.
B. white
C. shades of grey.
D. None of the above
View Answer
Ans : A
Explanation: 100% saturation always gives pure color.
7. What color does 0% saturation give?
A. pure color.
B. white
C. shades of grey.
D. None of the above
View Answer
Ans : C
Explanation: 0% saturation gives the darkest shade of grey and their original color will not be seen.
8. Which one of the following is not correct regarding l parameter of hsl in HTML?
A. value of l is used determining the lightness of the color
B. 0% means completely dark and 100% means completely light.
C. for getting original color, it should be set to 100%
D. None of the above
View Answer
Ans : C
Explanation: For getting the original color, it should be set to 50%.
9. What color will hsl(0,100%,50%) give?
A. red
B. green
C. blue
D. black
View Answer
Ans : A
Explanation: The 0degree hue value is red. Moreover, it is 100% saturated and lightness is also 50%. So, it will give a red color.
10. Choose the incorrect option regarding 'a' parameter of hsla.
A. a stands for alpha.
B. It has so limit in its maximum value
C. It's minimum value is 0.
D. It determines the degree of transparency.
View Answer
Ans : B
Explanation: Its maximum value is 1.
Also check :
Discussion