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="day1_web_overview.html#url"></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 th e document the anchor is in!)

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 w indow at the top of the screen, or click your right mouse button on a LI NK that already goes to that page and select "Copy Link Location." Either way, y ou can paste the full and correct URL for that link into your document.


 Agenda  Next  Prior
JAH,9 Sept 1996.