Skip to content

CSS Selectors

Last Of Type


The :last-of-type pseudo-class matches the last element of its type among siblings. If no type is provided, it will match the last element of any type.

Last Of Type

The selector matches the last div and the last p element in the list.

  • Change the selector to only match the last paragraph, but not the last div