Site hosted by Angelfire.com: Build your free website today!

General help index
Read our FAQ
help forums

HTML reference index
Home
basic HTML tags
HTML links
HTML lists
placing images
HTML tables

CSS reference index
Intro to CSS

Site Promotion
submit to search engines
meta tag generator
html solved search

contact me

HTML links.


Help with HTML links

Welcome to my HTML links referance page.

What is a HTML link?

HTML links (hyper links) are what we use to move between web pages the menu on the left is an example of this.

Using links
In order for a link to work you must have the adress of the page you wish to link to.
For example this is a working working hyper link and this is a broken hyper link try them to see what I mean.
Making hyper links

Now im going to show how to make a hyper link using HTML.

To start you need a page to link to im going to link to w3c to do this I would write the following code into the head section of my document.

<a href="http://www.w3c.org">w3c</a> when viewed on the web it would look like this w3c

Notice the text between the <a href> and the </a> tags
This is the name of the link you can name this whatever you want as long as it is not HTML.

linking in the same document.

It is easily possible to link items in the same document for the purpose of creating a menu for the page or just to point important parts of a page.

Now below is a the correct way to link within the same document:

<a name="top">title of the document been linked to here</a>

<a href="#top">name of the link here</a>

Notice the name of the link inside the code ("top")
This can be anything you want it to be but note that this name must also be in the actual link code ("#top")
you can create as many of these as you wish just name each one differantly as you go along.


copyright © 2000-2001 Richard Brown