Examveda
Examveda

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

C. Both p and strong have yellow background

D. None of the mentioned

Answer: Option B

Solution(By Examveda Team)

All occurrences of the strong element within a p element have a yellow background.

This Question Belongs to CSS >> CSS Selectors And CSS Files

Join The Discussion

Related Questions on CSS Selectors and CSS Files