Home / CSE MCQs / CSS MCQs :: Discussion

Discussion :: CSS MCQs

  1. Which of the following selector is used to selects siblings?
  2. A.
    ::after
    B.
    E ~ F
    C.
    :checked
    D.
    E[attr^=value]

    View Answer

    Workspace

    Answer : Option B

    Explanation :

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


Be The First To Comment