As we know it is always better to use ID and Name to locate the elements which will work for sure. You don't need to search for any other locator if there is ID or Name present in your application.
Let us look for xpath examples to use ID and Name effectively with combinations
If the html looks like below :
<input type="text" aria-label="Email or Phone" value="Email or Phone" tabindex="1" placeholder="" name="email" id="email" class="inputtext _5aju" style="background-color: transparent;">
We can use as below :