How to create links to sections on the same page in HTML
How to create links to sections on the same page in HTML.
To create links to a link within the page, two HTML tags need to be used.
This first tag is almost the same as any other HTML tag you would use to create a link to another page. However, to create a bookmark, you must start the link with a # (pound symbol,) which represents a name statement, used in the next tag. When the user clicks on Top, the computer would then go to the name tag, if found on the same page of the link
This next tag is where the first tag will go when the link is clicked. These are commonly referred to as bookmarks.
<A HREF="http://www.computerhope.com/issues/chsafe.htm#02">Windows 2000 Safe Mode</a>
Finally, a link can contain a web page with a bookmark that is on that page. In the above example, this code would create a link to our Safe Mode page and automatically move down to the Windows 2000 Safe Mode section.
For the first bookmark example to work you must first scroll in your browser window. After you've done this click the top link to return to the top of the page (with the first line being "Question").
This next example, will open the Safe Mode page and automatically scroll down to the Windows 2000 Safe Mode steps.