E > F

Matches any F element that is a child of an element E. (Source: W3C)

HTML:

  1. <div>
  2. <p>Lorem ipsum dolor sit amet, consectetur</p>
  3. <blockquote><p>Lorem ipsum dolor sit amet, consectetur</p></blockquote>
  4. </div>

CSS:

  1. p{font-style:normal}
  2. blockquote{margin:0;padding:0}
  3. div > p{font-style:italic}

Output:

Lorem ipsum dolor sit amet, consectetur

Lorem ipsum dolor sit amet, consectetur

In the example, the first paragraph should be set in italics.