Friday, August 29, 2008

Descendant Selectors

Using a descendant selector you can target only descendants of a particular element. Remember, descendants include both direct descendants (child elements) and all indirect descendants. Example: #main p
The space that separated the two selectors is called a combinator. There can be more than one descendant selector: ul li img
The descendant selector is an example of a contextual selector

No comments: