The pseudo-class :______-child can be used to style every element that is the nth-child, regardless of type, of its parent.

  • nth
  • first
  • last
  • only
The correct option is 'nth.' The :nth-child pseudo-class allows the selection of elements based on their position within a parent, providing flexibility in styling specific child elements.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *