Introducing the nth-child pseudoclass
Part of the new CSS3 standard, the nth-child and nth-last-child pseudoclasses are a useful way to select elements on a website, such as odd or even elements, or every 3rd or 4th element. Learn how this simple selector can impact your next project.
![nth-child pseudoclass](https://www.oreilly.com/content/wp-content/uploads/sites/2/2020/01/nth-child_pseudoclass-2ad9eef022ce03a93270999138fd7ea3.jpg)
Learn the ins and outs of CSS with CSS: The Definitive Collection, a series of short and practical ebooks taken from the upcoming book CSS: The Definitive Guide, 4th Edition.