Basic Css - Study Mode

[#41] Which of the following function adjust the brightness of an element’s color, for use by the filter property?
Correct Answer

(D) brightness()

Explanation

Solution: A value of 100% or decimal value of 1 leaves the image as is, while 0 produces black. Increasing the value from 1 or 100% brightens pixels from their original values.

[#42] Which of the following function adjusts the difference between light and dark values, for use by the filter property?
Correct Answer

(A) contrast()

Explanation

Solution: A value of 100% or a decimal value of 1 leaves the image as is, while 0 results in black. Increasing the value past 1 or 100% produces more dramatically stratified areas of light and dark.

[#43] Which of the following function with filter property to create your own sophisticated effects on DOM elements?
Correct Answer

(C) custom()

[#44] Which of the following function converts an element’s color to a shade of gray, for use by the filter property?
Correct Answer

(B) grayscale()

Explanation

Solution: A decimal value between 0 and 1 or percentage up to 100% controls the extent of the gray effect.

[#45] Which of the following function flips an element’s colors, for use by the filter property?
Correct Answer

(C) invert()

Explanation

Solution: A decimal value between 0 and 1 or percentage up to 100% controls the extent of the color-negative effect, with 0.5 or 50% producing gray.