Which is the correct CSS syntax?
-
body {color: black}
-
{body;color:black}
-
body:color=black
-
{body:color=black(body}
A
Correct answer
Explanation
Valid CSS syntax uses the selector followed by curly braces: selector { property: value }. Option A correctly shows 'body {color: black}' with proper syntax. Options B and D use incorrect brace placement, option C uses colon incorrectly and equals sign instead of braces.