Home » CSS » CSS Attribute Selectors » Question
  1. Which of the following selectors selects direct descendents?
    1. E ~ F
    2. E + F
    3. E > F
    4. E F
    5. None of these
Correct Option: A

body > p {background-color: yellow;}
/* makes all p tags that have the
body tag as their immediate parent
have the background color yellow */



Your comments will be displayed only after manual approval.