Hosting Solutions
mobile_logo Table of Contents
seal_frontseal_back

last child

The last-child structural pseudo-class selector will target the last element of the specified type or selector.
Syntax Logicelement:last-child { property_list }

CSS Code Example

<style> a:last-child { font-family:"Arial Black", Gadget, sans-serif; } </style> <a href="#">Link 1</a> <br> <a href="#">Link 2</a> <br> <a href="#">Link 3</a> <br> <a href="#">Link 4</a>

CSS

Selectors

universaltypecompoundclassidnotattributedescendantchildadjacent siblinggeneral siblingfirst childlast childonly childfirst of typelast of typeonly of typenth childnth last childnth of typenth last of typeemptyrootfirst linefirst letterbeforeafterlinkvisitedhoveractivefocustargetenableddisabledcheckedlang