Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Aviance School is one of the largest web solutions platform in India for developers to learn and share their programming knowledge and build their careers.
The descendant selector matches all elements that are descendants of a specified element.
Some Examples:
ul li { }
header h1 { }
footer p { }
If we consider as ul li { } that means “any list item that is a descendant of an unordered list.” Descendant means anywhere nested within it in the DOM tree or object. It could be a direct child Or could be five levels deep, it is still a descendant.