Order selectors

Xpath CSS
//ul/li[1] ul > li:first-child
//ul/li[2] ul > li:nth-child(2)
//ul/li[last()] ul > li:last-child
//li[@id="id"][1] li#id:first-child
//a[1] a:first-child
//a[last()] a:last-child
Comments