Matches an E element, that is the last sibling of its type. (Source: W3C)
<div>
<p>Lorem ipsum dolor sit amet, consectetur</p>
<p>Lorem ipsum dolor sit amet, consectetur</p>
<p>Lorem ipsum dolor sit amet, consectetur</p>
<div>Lorem ipsum dolor sit amet, consectetur</div>
</div>
p:last-of-type{font-style:italic}
Lorem ipsum dolor sit amet, consectetur
Lorem ipsum dolor sit amet, consectetur
Lorem ipsum dolor sit amet, consectetur
In the example, the third line of text should be set in italics as it is the last p
-element in the parent element.