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 Quiz

CSS3 Exercise

CSS Properties

CSS Functions

CSS Selectors

CSS :first child Selector

CSS :first-child Selector



The :first-child selector is used to selecting the specified selector if and only if it is the first child of its parent.




Its syntax is:-
:first-child {
  css declarations;

Code Explanation

All Tutorials related to CSS Selectors

All Sections related to CSS