Computer Applications

Which property is used to change the background color ?

  1. background-color
  2. bgcolor
  3. bg-color
  4. color

CSS

6 Likes

Answer

background-color

Reason — The background-color property is used to change the background color of an element. For example,

h1 {background-color : yellow; }

Answered By

1 Like


Related Questions