How would you select list items that are the only child within their containing unordered list?

  • :lonely-child
  • :only-child
  • :single-child
  • :unique-child
To select list items that are the only child within their containing unordered list, you should use the :only-child pseudo-class. This targets elements that are the only child of their parent, ensuring that it's the sole element within the parent container.
Add your answer
Loading...

Leave a comment

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