Answers for "link to different part of page html"

7

link to section on page html

<!-- #top is the ID of the div where u wanna link to -->
<a href="#top">Go back to the top!</a>

<div id="top"></div>
Posted by: Guest on June-19-2020
2

go to id html

<a href="#sushi">Sushi</a>
<a href="#bbq">BBQ</a>

Sample section:
<div id='sushi'><a name='sushi'></a></div>
<div id='bbq'><a name='bbq'></a></div>
Posted by: Guest on December-08-2020
0

html link to other part of the page

<h1><a href="#belowtext">Title here xD</a></h1>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>

<p id="belowtext">Your below text appears here when you click on the text above me you will be redirected to here</p>
Posted by: Guest on June-19-2021
1

link that scrolls down the page

<a href="#google"></a>

<div id="google"></div>
Posted by: Guest on September-12-2020

Code answers related to "link to different part of page html"

Browse Popular Code Answers by Language