HTML & CSS · Junior · Question 64 of 75

What is the difference between .menu a and .menu > a?

Explanation

The space is the descendant combinator, > is the child combinator. Using > limits the reach of styles in nested menus.

Further reading

Problem with a question

HTML & CSS · Junior · question 64

Test yourself

Take the HTML & CSS · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz