Vidyalelo
CSS · Q21

CSS Selectors and CSS Files

Programming · CSS · question 21

Q21

What will happen in this case? p strong background-color: yellow;

A.
Strong have yellow background
B.
Strong element within a p element have a yellow background
Answer
C.
Both p and strong have yellow background
D.
None of the mentioned

Answer: Option B

Solution

Answer: Option B
Solution:
All occurrences of the strong element within a p element have a yellow background.