Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

What will be the output of below mentioned code snippet?
p strong {background-color: yellow;}

What will be the output of below mentioned code snippet?
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: b
Explanation: All occurrences of the strong element within a p element have a yellow background.

Join The Discussion