0
How can I place link in the same page?
We come across this example that when we open a website, swipe to the bottom, then there is a link (with any name) which brings back you to the top on the same page, or another links with similar behavior. How I can create that?
1 Réponse
+ 2
Try something like this:
<body>
<section id = "header">
...
</ section>
<footer>
<p> <a href ="#header"> Go back </a> </ p>
</ footer>
</ body>
The "magic" is made by the value "#header" in the href attribute of the <a> tag. If you specify the id of some element it will take you to that section of the page.