Linking within the page and go to top html codeTo move to different sections of the same page we will name the area of that page or we can call it anchor point. Here is how the area will be marked with a name using <a tag. <a name=last>This is last part of the page</a>When ever we click to reach this part of the page, this link will be at our top of the page. To link this part of the page we will use the above name to tell the browser to move to that portion. Here is the code. <a href='#last'>Last part</a>You can see this will link to last part area of the page. After clicking the link saying Last part we can jump to the Last part of the page. Here you can see links to move to different part of the page and you can return to top by clicking the Back to top link at right side.
Here is the html code for this page <table border='0' width='100%' cellspacing='0' cellpadding='0'> <tr> <tr><td> This is top of my page, go to <a href='#middle'>Middle</a> | <a href='#last'>Last part</a> | <a href='#end'>End</a> <br><br><br><br><br><br><br><br>< br><br><br><br><br><br><br> </td><td> </td></tr> <tr><td><a name=middle>This is middle of the page</a> <br><br><br><br><br><br> <br><br><br><br><br><br><br><br><br><br><br><br><br><br> </td><td align=right valign=top><a href='#TOP'>Back to top</a></td></tr> <tr><td><a name=last>This is last part of the page</a> <br><br><br><br><br><br><br><br> <br><br><br><br><br><br><br><br><br><br><br><br><br><br> </td><td align=right valign=top><a href='#TOP'>Back to top</a></td></tr> <tr><td><a name=end>This is end of the page</a> <br><br><br><br><br><br><br><br> <br><br><br><br><br><br> </td><td align=right valign=top> <a href='#TOP'> Back to top</a></td></tr> </table>
This article is written by plus2net.com team.
| ||||||||
| ||||||||