Link Sections of a Page
If you want to link to another part of the same page, or to the middle of another page, you need to create a named anchor at the point you want to link to. Use the <a> tag with the name attribute:
<a name="anchorname"></a>
Now link to it using the <a href> tag. For example,
Learn other <a href="http://134.71.56.40/webdesign/html/codes.html#middle">codes</a>
Will look like
Learn other HTML Codes
Where "codes" will link you to the middle of the page of "codes.html"*. If you want to link to somewhere else on the same page, leave out the rest of the URL altogether. For example,
<a href="#top">Go to the top of the page </a>
Will look like
Go to the top of the page
And will link you to the top of this page*.
Previous CodePrevious Code
Next Code