Blog Desk
February 10, 2020
1375
Which is the correct CSS syntax?
-
{body;color:black;}
-
{body:color=black;}
-
body {color: black;}
-
body:color=black;
The Right Answer is : Option
C
Explanation
CSS selector
The selector refers to the HTML element you want to make a style. Declaration blocks are surrounded by curly braces. Each declaration includes a
CSS property name and a value, separated by a colon. Multiple
CSS declarations are separated with semicolons.
Example:
body {color: #000000;}