How to create links to sections on the same page in HTML?
Solution
To create links to a link within the page, two HTML tags need to be used.
<A HREF="#top">Top</a>
<A NAME="top">
The first tag <A HREF="#top">Top</a> is different in that it has a # which represents a name statement. When the user clicks on Top, the computer would then go to the name tag, if found.
The second tag <A NAME="top"> is where the first tag will reference when clicked. These are commonly referred to asbookmarks.
Example
Scroll down on this page and when clicking on the link below, you should return to the top of the page (with the first line being "issue").
See the Getting into Widows Safe Mode page for a full example of how bookmarks can be used. On this page we have each version of Microsoft Windows at the top of the page that points to bookmarks throughout the page. Clicking any version of Windows will automatically scroll you to the instructions for that version of Windows.
0 comments:
Post a Comment