CSS

CSS Intro

CSS Intro Quiz

CSS Intro Exercise

CSS Basic

CSS Basic Quiz

CSS Basic Exercise

CSS Advance

CSS Advance Quiz

CSS Advance Exercise

CSS3

CSS3 Quiz

CSS3 Exercise

CSS Properties

CSS Functions

CSS Selectors

CSS :first of type Selector

CSS :first-of-type Selector

 

 

The :first-of-type selector is used to matching every element that is the first child of the particular type of its parent. It is very much similar to the nth-of-type().

 

Syntax:-

 

Its syntax is:-
:first-of-type {
  css declarations;
}

Code Explanation

All Tutorials related to CSS Selectors

All Sections related to CSS