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 :last child Selector

CSS :last-child Selector



The :last-child selector is used to matching every element that is the last child of its parent. It is similar to nth-last-child(1).




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

Code Explanation

All Tutorials related to CSS Selectors

All Sections related to CSS