|
By Eddy R.
8-21-00
Web builders use named anchors because they provide a certain level
of flexibility in a web site. The most common way to use them is
by adding a Back to Top link at the bottom of documents -
which is used to jump to the top of a document.
Named anchors have many benefits, and creating them is as easy
as 1,2,3. To create a named anchor you need two things.
The anchor
The anchor sets position placemakers in a document. Named anchors
are used to link to a particular area in a document, or in a different
document. Named anchors are also case sensitive.
This is what the named anchor looks like in HTML.
<a name="anchor-target"></a>
The link
In order for an anchor to serve a purpose, you must create a link
to it. To link to an anchor, type a number sign (#) and the name
of the anchor in the HTML of the link you create, like so.
<a href="http://www.your-website/home.html#anchor-target">here</a>
See
it in action
Some web builders have expressed that named anchors can become
a nuisance to a site's audience; this can hold true, if and only
if, one uses too many of them in the same document. Why? Because
they can confuse the site's audience.
Named anchors can be a valuable tool when used properly, so never
refrain from using them when needed.
|