Which property is used to change the background color?
-
color:
-
bgcolor:
-
background-color:
-
background-colour:
C
Correct answer
Explanation
The CSS property background-color sets the background color of an element. The American spelling "color" is correct; "colour" is not valid in CSS. The bgcolor attribute is obsolete HTML, not a CSS property. The color property sets text color, not background.