---
id: "nth-child"
kind: "web-feature"
canonical: "https://timetostable.com/feature/nth-child"
baseline: "high"
bcd_version: "8.1.11"
web_features_version: "3.48.0"
---

# :nth-child() (`nth-child`)

The :nth-child() and :nth-last-child() CSS functional pseudo-classes match elements based on their index within a list of elements. The :first-child and :last-child pseudo-classes match the first and last element in a list, and the :only-child pseudo-class matches an element with no siblings.

- **Group**: Selectors
- **Baseline**: Widely Available
- **Newly Available Date**: 2015-07-29
- **Widely Available Date**: 2018-01-29
- **Specification**: https://drafts.csswg.org/selectors-3/#nth-child-pseudo
- **Constituent BCD keys**: 10

## Browser Support Timeline

| Browser | Version | Release Date |
| --- | --- | --- |
| Safari | 3.1 | 2008-03-18 |
| Safari on iOS | 2 | 2008-07-11 |
| Chrome | 1 | 2008-12-11 |
| Firefox | 3.5 | 2009-06-30 |
| Firefox for Android | 4 | 2011-03-29 |
| Chrome Android | 18 | 2012-06-27 |
| Edge | 12 | 2015-07-29 |

