Let us consider a scenario, there are 4 login buttons on page with same id or ids are changing dynamically.
This locator is start with current element. For example, xpath=//td[4] is the relative xpath locator for link22 element in below HTML code:
This locator is start with root element. For example, xpath=/html/body/table[@id='table1']/tbody/tr/td is the absolute xpath locator for link11 element in below HTML code: