Current Assignment(s)
A6: Color
Due: Recommended by Monday, 6.04
Due: Recommended by Monday, 6.04
Child Selector
The child selector tells the browser to select only the direct children of the parent element. To create a child selector chain, use the “greater than” operator between elements (>
).
In the following example, the browser should only select the paragraph elements that are direct children of the div element “outer-block”. It ignores the paragraph element inside the div “inner-block”.
- Previous
- Next