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

# :nth-of-type() pseudo-classes (`nth-of-type`)

The :nth-of-type() and :nth-last-of-type() CSS functional pseudo-classes match elements based on their position among siblings of the same type. The :first-of-type, :last-of-type, and :only-of-type pseudo-classes match the first, last, and only elements of its type.

- **Group**: Selectors
- **Baseline**: Widely Available
- **Newly Available Date**: 2015-07-29
- **Widely Available Date**: 2018-01-29
- **Specification**: https://drafts.csswg.org/selectors-4/#typed-child-index
- **Constituent BCD keys**: 5

## Browser Support Timeline

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

