left up right
Selector Composition

Assume E is any element

div.fred ol > li p + p :first-line

Selects a p element whose immediate sibling before it is a p element. They must be descendants of an li element that is a child of an ol element and the ol element must be a descendant of a div element of class fred. And it only applies to the first line of that p element!

The div.fred way of writing class selectors is only available for XHTML and not XML in general. Similarly the #fred selection of an element with id set to fred