WWW Authoring Day 2: Text Anchors

Text anchors are probably the most common type; you've seen quite a few of them as you were reading through this seminar (if you've been reading online, and not just the printed copy). The HTML for a text anchor looks like this:

<A HREF="http://www.lehigh.edu/">
Go to Lehigh's Home Page!
</A>

and the result comes out like this: Go to Lehigh's Home Page!

The tricky part of this is getting the URL right. We've already covered the structure of URL's. A hypertext link anchor can link to any full or partial URL, including named anchors in the same or other documents.
For instance, a link such as:

<A HREF="glossary.html#url"> Link </A>
will make a link to the URL definition in the glossary for this seminar (as long as it is in the same directory as the document the anchor is in!)

For more information about URLs, see the URL Tutorial

If you are linking to an existing URL, you can copy the page's URL and paste it into your document. In Netscape, you can either select the URL in the Location window at the top of the screen, or click your right mouse button on a link that already goes to that page and select "Copy Link Location." Either way, you can paste the full and correct URL for that link into your document.


 Previous  Top  Next
JAH,9 Sept 1996.