<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
  "http://www.w3.org/TR/REC-html40/strict.dtd"
<HTML>


 <HEAD>
  <TITLE>
   Links
  </TITLE>
 </HEAD>
 <BODY>
Hypertext Skills Group
  <H1 ALIGN=Center>

  </H1>

Links

  <P>

Links are the way that web pages are connected to other web pages and other services available on the Internet. They allow the user to navigate around sites, and to move from one website to another.

  </P>
  <H2>

  </H2>

Anchors

  <P>

The tags <A> and </A> are wrapped around a piece of text or an image to turn it into a link. The <A> tag should specify the type and address of the destination of the link. Typically the mark-up looks like this:

  </P>
  <P ALIGN=Center>

<A HREF="http://www.domain.con/dir/file.html">Some Text</A>

  </P>
  <P>

HREF indicates a Hypertext REFerence, http: indicates that the link is to a web page, www.domain.con is the address of a web site, dir is a directory in that website, and file.html is an html file. If no directory is specified the top level of the site is assumed, and if no file is specified a default file (typically called index.htm or index.html) is assumed. Directories are sometimes called Folders.

  </P>
  <P>

So, for instance, a link to the home-page of a site might look like this:

  </P>
  <P ALIGN=Center>

<A HREF="http://www.domain.con/">Naked Ladies</A>

  </P>
  <H2>

  </H2>

Relative Links

  <P>

If the page that a link points to is on the same site as the page displaying the link there is no need to specify the address of the site, as the current site is assumed.

  </P>
  <P>

This is convenient when developing a website off-line, or when moving the site from one address to another.

  </P>
  <P>

For example, the link to the contents page of this site looks like this.

  </P>
  <P ALIGN=Center>

<A HREF="contents.htm">Contents</A>

  </P>
  <P>

As no directory is specified, the directory in which this page is located is assumed.

  </P>
  <P>

A link to a file in a directory called "sub" located within the current directory (the directory that contains the file for this page) might look like this:

  </P>
  <P ALIGN=Center>

<A HREF="sub/index.htm">Changing Directories</A>

  </P>
  <H2>

  </H2>

eMail Links

  <P>

Links can also be used to specify an eMail address, so that the viewer can send eMail while viewing the page.

  </P>
  <P>

An eMail link might look like this: (Note that the address is fictional, so do not use it to send eMail. It will be returned to you with an error message.)

  </P>
  <P ALIGN=Center>

<A HREF="mailto:joe.soap@fictional.con">Send eMail</A>

  </P>
  <HR>

  <P ALIGN=Center>
   <A HREF="contents.htm">

   </A>
  </P>

Contents

 </BODY>
</HTML>