:last-of-type
Term side of the Card
Topic: Pseudo Classes
Unit title: :last-of-type
Categories: Pseudo-class
Explanation side of the Card
Explanation: The pseudo-class that applies styles to the last element of a specific type within its parent. It's similar to `:last-child`, but it only matches elements of the same type (like the last `<p>` in a series of paragraphs), making it useful for styling specific types of content 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 3.5
- The safari browser supports this feature starting from version 3.1
Availability: