Multiple choice technology web technology

In what form are style rules presented?

  1. selector { property: value }

  2. selector { property= value }

  3. selector ( property: value )

  4. selector ( property= value )

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

CSS rules follow the syntax 'selector { property: value }' where the selector is followed by curly braces containing the property and value separated by a colon. The property: value pair uses a colon, not an equals sign. Options B and D incorrectly use '=' and parentheses instead of braces.