WebBuilder101 - Making the web happen!
Need Web Dev software? Here is the place to
Flash Point
How to create "Named Anchors"

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.

.
.

 

More Resources
Learn the code
What is HTML?
HTML Editors
A quick guide to having a web presence
Building Web Sites - 7 pointers that will help you get started

Suggested Reading

Beginning Active Server Pages 3.0
JavaScript Bible
Red Hat Linux
Dreamweaver 3.0
HTML Bible



Download WB101 Wallpaper
• Web Builder 101 Wallpaper Get it!.
• Find out how to create your own Wallpaper Teach me!.
Sign up for our Newsletters
• Web Building Sign me Up!.
• Net Alert! Sign me Up!.
Need Help?
• Contact Support Click here.
• E-mail the Webmaster Click Here.
• Search Tips Click Here.

Webbuilder101.com © 1998 - 2003 Copyright and Terms of Use
Send mail to: webmaster@webbuilder101.com

» About » Support

» FAQ » What's New » MyLog

Web Builder 101 Web Builder 101 - Making the Web Happen Web Builder 101 - Making the Web Happen
.