CBSE Class 10 Computer Applications Question 21 of 37

Cascading Style Sheets (CSS) — Question 1

Back to all questions
1
Question

Question 1

Which property is used to change the background color ?

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

background-color

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

h1 {background-color : yellow; }