Absolute XPath begins from the root of the HTML document and specifies the complete path to the element. It starts with a single slash /.
//html//div/div/div/div/div/div/div/img
Relative XPath starts with a double slash // and refers to any element directly in the DOM, which can then be used to traverse and locate the desired element using its tag and attributes. It is always preferred over an absolute XPath as it is not a complete path from the root element.
//img[@id='LambdaTest_logo']