Question: To change the color of an SVG using CSS, which property is used?

  1. Use background-fill to set the color inside the object and stroke or border to set the color of the border.
  2. The color cannot be changed with CSS.
  3. Use fill or background to set the color inside the object and stroke to set the color of the border.
  4. Use fill to set the color inside the object and stroke to set the color of the border.

Answer: The correct answer of the above question is Option D:Use fill to set the color inside the object and stroke to set the color of the border.