+ 1

Does anyone know how to go to another "page" on the same page using the HTML button tag?

21st Oct 2025, 11:05 AM
Muhammad Akbar
Muhammad Akbar - avatar
3 Answers
+ 2
Using HTML One can use the anchor tag to redirect to a particular section on the same page. You need to add an "id attribute" to the section you want to show and use the same id in the href attribute with "#" in the anchor tag. So that, on clicking a particular link, you will be redirected to the section that has the same ID mentioned in the anchor tag.
21st Oct 2025, 12:05 PM
Axxcii
Axxcii - avatar
0
Mind that sololearn playground is a sandbox, and you can not do actually multipage projects.
21st Oct 2025, 3:09 PM
Lisa
Lisa - avatar