Links and anchors


Links are defined in HTML with start tag <A HREF="URL"> and end tag </A>. Link text or image is between start and end tag. URL (Uniform Resource Locator) is address where the referenced document can be found.

Example of link code:
Here is link to my
<A HREF="http://www.uta.fi/~litera/index.html"> homepage <A> here at the University of Tampere.

Browsers interpret it like this:
Here is link to my homepage here at the University of Tampere.

Link can be also an image, like button at the bottom of this page:
<A HREF="html_d4.html"><IMG ALIGN=Left SRC="back.gif"></A>


Anchor

If link is to reference certain part of the target document, target name can be added to link address (URL), like
<A HREF="http://www.uta.fi/~litera/index.html#here_is>...

At the target document anchor name is defined by tag <A NAME="here_is"></A>