Examveda
Examveda

Which of the following selector is used to selects siblings?

A. ::after

B. E ~ F

C. :checked

D. E[attr^=value]

Answer: Option B

Solution(By Examveda Team)

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

This Question Belongs to CSS >> CSS3 Fundamentals

Join The Discussion

Related Questions on CSS3 Fundamentals