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