Sorry:

this tester doesn't work when JavaScript is not enabled...

li div :nth-child :nth-of-type :nth-last-child :nth-last-of-type ( )

Recipes

Note

The <div> and <ins> elements in the code tree on the right don't show their closing tags (for visual simplicity), but they are actually there!

Credit to Francky Kleyneman for the improved second version of this page.