Vidyalelo
CSS · Q27

CSS Selectors and CSS Files

Programming · CSS · question 27

Q27

Which of the following selectors selects adjacent siblings?

A.
E > F
B.
E F
C.
E + F
Answer
D.
E ~ F

Answer: Option C

Solution

Answer: Option C
Solution:
Example: h1 + p {color: red;}
/* makes all p tags that are immediately preceded by an h1 tag red */