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, 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.
Exit mobile version