Question discussion

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

2366Medium DSSSB TGT Computer Science 0 replies 1 views
0

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

  • Afill
  • Bcolor
  • Cbgcolor
  • Dbackground-color
Correct answer: D

Explanation

background-color sets the background of an element, while color sets the colour of its text.

Discussion 0

Nobody has replied yet. Start the discussion!