1. :nth-child(n)
  2. ::first-line
  3. :last-of-type
  4. :first-of-type
4 views

1 Answers

Answer: Option 1

div:nth-child(2) {background-color: red;} /* sets the background color to red if the div is its parent’s second child */

4 views