Which of the following is the correct syntax for a CSS rule?
-
A
selector {property: value;}
Correct answer
-
B
selector: {property=value;}
-
C
selector {property=value}
-
D
selector: {property: value;}
Correct answer
A. selector {property: value;}
5 views
Explanation
A CSS rule is written as selector { property: value; }, for example p { color: blue; }.
Reference
Asked in: Matric,FBISE
Doubts & discussion
Not sure why the answer is A? Ask here and get an explanation.
Ask a doubt about this MCQ