Home / CSE MCQs / CSS MCQs :: Discussion

Discussion :: CSS MCQs

  1. Which of the following selectors selects direct descendents?
  2. A.
    E > F
    B.
    E F
    C.
    E + F
    D.
    E ~ F

    View Answer

    Workspace

    Answer : Option A

    Explanation :

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


Be The First To Comment