How would I go about getting to a new page after clicking a button but brings me to middle of new page

I am hoping to get some insight on how I can go about this.

So, lets say that I have a home page. On this home page I have a button that says “View More Cats”

When the user clicks the button to be directed to a new page in order to view more cats, it brings them to the middle of the page where more cats can be found instead of at the top of the page. dogs, birds, zebras is what is above cats on the new page so that is why I would want to save the user time from scrolling to find cats.

creating an anchor tag to be directed to a new page is what I do know, but I am not sure on how to set the placement of the new page be in the middle where there is a div that holds elements regarding info of ‘cats’

MDN: Creating hyperlinks: Document fragments

1 Like

thank you! Do you know if this will still work if I am using react components and placing those components through my react app?

actually I think I found something. Thanks again!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.