I have created pages with overflow: auto; mode & with various sections for example;
Top - LandTransport
Next - RailTransport
Next - WaterTransport
Next - AirTransport
I would like to create an index similar to this;
<button><a href="/LandTransport">LandTransport</a></button> <button><a href="/RailTransport">RailTransport</a></button> <button><a href="/WaterTransport">WaterTransport</a></button> <button><a href="/AirTransport">AirTransport</a></button>
Im unsure if the tags that I have used are correct. This website does not provide any rule.
I am familiar with href jumping to another page but I dont want that.
If a button is clicked I want the page to jump scroll to the appropriate section on the same page.
Is there some simple HTML code that will achieve that?
I have Googled several times but cant find anything.