Which CSS property is used to change the background color of an element?

  • background
  • background-color
  • color
  • text-color
The CSS property used to change the background color of an element is background-color. This property specifies the background color of an element and can be set using color names, HEX codes, RGB values, or RGBA values, allowing for a wide range of color customization.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *