CSS Selectors Reference
CSS Selectors Reference
CSS Selectors
In CSS, selectors are patterns used to select the element(s) you want to style.
:empty
HTML p:empty
CSS MORE Selects every <p> element
EXERCISES that has
no children (including text nodes)
HTML
:nth-last-child(n) CSS MORE
p:nth-last-child(2) EXERCISES
Selects every <p> element that is
the second child of its parent,
counting from the last child