Home » CSS » CSS Attribute Selectors » Question
  1. Which of the following selectors selects siblings?
    1. *
    2. E, F, G
    3. E.class
    4. E ~ F
    5. None of these
Correct Option: D

p ~ strong {font-style: italic;}
/* sets the font style to italic on
all strong tags that have a p tag
as a preceding sibling */



Your comments will be displayed only after manual approval.