?
Which of the following selectors selects siblings?
Answer & Solution
Correct Answer:
Option
B
Example: 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