Hosting Solutions
mobile_logo Table of Contents

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>



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