How to create anchor links?
Anchor links can help users navigate sections of a long page by taking them directly to a particular area of the page. An anchor link consists of two parts:
The link code:
<a href="#myLink">Link</a>
The anchor code:
<a name="myLink">Anchor</a>
Note that the difference between the two links is the # symbol within the tag, as well as the <a name> tag. To create your anchor links:
First build your link code:
<a href="#myLink">Link</a>
(Note that this link features a # symbol within the tag, which tells the browser to link to a corresponding anchor tag named myLink.)
Next create your anchor link. Use the exact same name as in your link code (in this example the name is mylink):
<a name="myLink">Anchor</a>
Once again, this is not a normal link, because the link uses the word name instead of href. Which is important, because it tells the browser where to go when your first link is clicked.
To make your anchor tags work correctly, the word that appears in the quotes in both the anchor and link tags must match. For example:
<a href="#news">Go to the Latest News</a>
<a name="news">The Latest News</a>
Fairmont State University© and Pierpont Community & Technical College© are Equal Opportunity/Affirmative Action Institutions
1201 Locust Avenue, Fairmont, WV 26554 Tel: 304-367-4892 Toll Free: 1-800-641-5678 TDD: 304-367-4200
Please read The Fine Print Site utilizes ActiveCampus™ software by Datatel