:last-child Back
:last-childis a pseudo-class which selects the target element if it is the last child of some other element.- That is,
:last-childwill match the element only if it is the last child of its parent. - It's similar with
first-child
:last-child is a pseudo-class which selects the target element if it is the last child of some other element.:last-child will match the element only if it is the last child of its parent.first-child:last-child