Multiple choice technology web technology

How do you add a background color for all

elements?

  1. h1 {background-color:#FFFFFF}

  2. all.h1 {background-color:#FFFFFF}

  3. h1.all {background-color:#FFFFFF}

  4. None of the above

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

CSS uses element selectors directly followed by property declarations in curly braces. The background-color property sets the background color, and #FFFFFF represents white in hex color notation. Options B and C use incorrect selector syntax with 'all' keyword.