Which of the following property is used to set the opacity of an image?

border
height
width
#NAME?

The correct answer is D. -moz-opacity.

The -moz-opacity property is used to set the opacity of an element. It is a CSS property that is supported by Mozilla Firefox and other Gecko-based browsers. The value of the property can be a number between 0 and 1,

24.9-48.3 48.6-11.4 42.9-11.4 132.3-11.4 132.3s0 89.4 11.4 132.3c6.3 23.7 24.8 41.5 48.3 47.8C117.2 448 288 448 288 448s170.8 0 213.4-11.5c23.5-6.3 42-24.2 48.3-47.8 11.4-42.9 11.4-132.3 11.4-132.3s0-89.4-11.4-132.3zm-317.5 213.5V175.2l142.7 81.2-142.7 81.2z"/> Subscribe on YouTube
where 0 is fully transparent and 1 is fully opaque.

The other options are not used to set the opacity of an image.

  • The border property is used to set the border of an element.
  • The height property is used to set the height of an element.
  • The width property is used to set the width of an element.