Combinator selectors

why li:hover>ul showing the contents of li (which is under ul)
“>” shows the content of the next child only and technically ul has no content in itself.

element1>element2 css selector selects all element2 whose parent is element 1
so li:hover > ul is applied to the ul children to the li

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.