Not able to call the id on another html page


I have defined id in the div and it is is called on the same page which works fine. But when I called the id on the another page. It is not taking me to the desired section. It goes to that part and instantly goes to top of the website.

Kindly help me. Please tell what code to be used for this.


Do you have some code example of what you are doing?