Xpath

How to locate where an element is generated?
Which is the best way to locate an element?How do you find the XPath of an element?How do I find the name of a website element?How do I find an elemen...