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

Safari v3.1 (2008-03-18) Safari on iOS v2 (2008-07-11) Firefox v3.5 (2009-06-30) Chrome v4 (2010-01-25) Firefox for Android v4 (2011-03-29) Chrome Android v18 (2012-06-27) Edge v12 (2015-07-29)
Green dot marks the first browser release (2008-03-18); blue dots show subsequent browser launches (+2689d total span).

Browser Support Releases

BrowserTypeVersionRelease 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 KeyAreaCore-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)