ISRO Computer Science (CSE) 2015 - Question 45

All ISRO Computer Science (CSE) papers | ISRO Computer Science (CSE) 2015

To add a background color for all <h1> elements, which of the following HTML syntax is used

  • A. h1 {background-color: #FFFFFF}
  • B. {background-color: #FFFFFF}.h1
  • C. h1 {background-color: #FFFFFF}.h1(all)
  • D. h1.all{bgcolor = #FFFFFF}

Answer: A. h1 {background-color: #FFFFFF}

Explanation: Correct CSS syntax.

| | All questions of ISRO Computer Science (CSE) 2015