Vidyalelo
CSS · Q37

CSS3 Fundamentals

Programming · CSS · question 37

Q37

Which of the following selector is used to selects siblings?

A.
::after
B.
E ~ F
Answer
C.
:checked
D.
E[attr^=value]

Answer: Option B

Solution

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