ExamVeda
Login
Home
This question belongs to CSS CSS Selectors And CSS Files
CSS Selectors and CSS Files
?

Which of the following selectors selects direct descendents?

Answer & Solution
Correct Answer: Option A
Example: body > p {background-color: yellow;}
/* makes all p tags that have the body tag as their immediate parent have the background color yellow */
Examveda
Question posted by Examveda
Community

Join the Discussion

1 Comment
Daniel Toney
Daniel Toney 5 years ago
What does the following CSS style?

article:nth-child( 3)