Multiple choice technology web technology

Which is the correct CSS syntax?

  1. body {color: black}

  2. body:color=black

  3. {body:color=black(body}

  4. {body;color:black}

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

CSS uses selector {property: value} syntax, where the selector targets an HTML element and the declaration block in braces contains styles. Option A correctly shows 'body {color: black}' with proper selector, braces, and property-value colon separator. Option B incorrectly uses equals sign instead of colon, Option C misplaces braces outside the selector, and Option D uses semicolon instead of colon before the value.