English

Which property is used to change the background color?

Advertisements
Advertisements

Question

Which property is used to change the background color?

Options

  • background-color

  • bgcolor

  • bg-color

  • color

MCQ
Advertisements

Solution

background-color

Explanation:

An element’s background colour can be changed using the background-color attribute. For example,

h1 {background-color : yellow; }
shaalaa.com
  Is there an error in this question or solution?
Chapter 6: Cascading Style Sheets (CSS) - Assignment [Page 274]

APPEARS IN

Sumita Arora Computer Applications [English] Class 10
Chapter 6 Cascading Style Sheets (CSS)
Assignment | Q 1. | Page 274
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×