Child Selector ("parent > child") parent > child 1.0 Any valid selector. A selector to filter the child elements. Selects all direct child elements specified by "child" of elements specified by "parent".

The child combinator (E > F) can be thought of as a more specific form of the descendant combinator (E F) in that it selects only first-level descendants.

Places a border around all list items that are children of <ul class="topnav"> . li" ).css( "border", "3px double red" ); ]]>
  • Item 1
  • Item 2
    • Nested item 1
    • Nested item 2
    • Nested item 3
  • Item 3
  • ]]>