?
Which of the following selector is used to selects siblings?
Answer & Solution
Correct Answer:
Option
B
p ~ strong {font-style: italic;}
/* sets the font style to italic on all strong tags that have a p tag as a preceding sibling */
/* sets the font style to italic on all strong tags that have a p tag as a preceding sibling */
Join the Discussion
Login to post a comment or share your explanation.
Login