Which of the following property is used to control the repetition of an image in the background?

background-color
background-image
background-repeat
background-position

The correct answer is C. background-repeat.

The background-repeat property is used to control how a background image is repeated. The possible values are:

  • repeat: The image is repeated both horizontally and vertically.
  • repeat-x: The image is repeated horizontally, but not vertically.
  • repeat-y: The image is repeated vertically, but not horizontally.
  • no-repeat: The image is not repeated.

The background-color property is used to set the background color of an element. The background-image property is used to set the background image of an element. The background-position property is used to set the position of the background image.

Here is an example of how to use the background-repeat property:

css
div {
background-image: url(https://example.com/image.png);
background-repeat: repeat-x;
}

This will cause the image to be repeated horizontally, but not vertically.