Baseline Widely Selectors
:nth-of-type() pseudo-classes
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.
Baseline Status
Widely Available
Since 2015-07-29
First Core Launch
Safari 3.1
2008-03-18
Core-3 Stability
678d (1.9y)
Last: Chrome (2010-01-25)
BCD Keys Mapped
5
Group: Selectors
Browser Support Timeline
Browser Support Releases
| Browser | Type | Version | Release Date |
|---|---|---|---|
| Safari | desktop | 3.1 | 2008-03-18 |
| Safari on iOS | mobile | 2 | 2008-07-11 |
| Firefox | desktop | 3.5 | 2009-06-30 |
| Chrome | desktop | 4 | 2010-01-25 |
| Firefox for Android | mobile | 4 | 2011-03-29 |
| Chrome Android | mobile | 18 | 2012-06-27 |
| Edge | desktop | 12 | 2015-07-29 |
Constituent MDN BCD Keys (Sample)
| BCD Key | Area | Core-3 TTA |
|---|---|---|
| css.selectors.first-of-type | CSS | 469d (1.3y) |
| css.selectors.last-of-type | CSS | 469d (1.3y) |
| css.selectors.nth-last-of-type | CSS | 678d (1.9y) |
| css.selectors.nth-of-type | CSS | 469d (1.3y) |
| css.selectors.only-of-type | CSS | 469d (1.3y) |