:last-child

Term side of the Card
Topic: Pseudo Classes
Unit title: :last-child
Categories: Pseudo-class
Explanation side of the Card

Explanation: The pseudo-class that targets the last child element of its parent. It applies styles to this element specifically, enabling to differentiate the appearance or layout of the last item in a group.

Browser compatibility:
  • The chrome browser supports this feature starting from version 1
  • The edge browser supports this feature starting from version 12
  • The firefox browser supports this feature starting from version 1
  • The safari browser supports this feature starting from version 3.1
Availability: