Creating Anchor Links

The uses of anchor link is so that when someone clicks on a link on your web page, that link will take them to a specific section of that current web page or to a specific section of a different web page. This isn't commonly used, but it can be very useful in some situations.

You have to define what section to link to so you must create an anchor first. To do this, you use the code:

<a name="anchor name">"link name"</a>

Where anchor name is the name that will be used internally and link name will be the actual words or images that the user will see on your web page.

Once you have define which section to link to, you then create the actual link (see Linking Pages Together).

The code will vary slightly when linking to an anchor:

<a href="URl to a web page#anchor name">text a person can click on </a>

You have to make sure that the anchor name matches the one used to create the anchor.

Next: Creating Inline Spans

Template Design | Elque 2007