Question:Which of the following CSS rule is invalid?
A p{margin-left:40px;}
B p {
margin-left : 40px ;
}
C p {
margin - left : 40 px;
}
D All are valid
/37
+ Answer
C
+ Explanation1. Whitespace between value and unit is invalid. Example: 40 %
2. Whitespace in left or right side of - (dash sign) at a CSS property is invalid. Example: padding - left
3. Whitespace between (. or #) and selector name is invalid. Example: . box, # box