Yahoo! GeoCities
Yahoo! - Home

HTML Help
Yahoo! Geocities > GeoCities Help > HTML Help >
Related Links
· How do I make an image have a link?
· How do I create anchor links?
· How do I create subdirectories?
· Additional HTML Information

Further Reading
· Yahoo! How-to
 
How do I create hyperlinks?
You can create hyperlinks on your page that point to:

  1. A page or file in your directory
  2. A page or file in a subdirectory
  3. A location outside your directory (on the Internet).

To create a link to a page or file located in the same directory as the page you are editing, you would simply need to use the relative path, which you would only need to provide the file name in the link:

<a href="pagename.html">Next Page</a>

"Next Page" will be displayed on the page, and clicking on it will bring you to pagename.html. If you would like to change what your link says replace "Next Page" with whatever you want your link to say. Additionally, If you would like to link to a different page, just replace "pagename.html" with the name of that file.

When linking to a subdirectory, you need to use this format:

<a href="subdirectory/pagename.html">Next Page</a>

Creating a link to a page that resides outside your directory, or on the Internet, you would simply need to use the full address (called the absolute path) instead of the relative path:

<a href="http://my.yahoo.com">Go to My Yahoo!</a>

The code above will create a link that will take you to the "My Yahoo!" page located at http://my.yahoo.com. Use the back button on your browser to return here. Try it below!

Go to "My Yahoo!"


Is this enough information?
Great! Click this button to go back to Yahoo! Geocities.
Ok, click this button for a feedback form.


Copyright © 1994 -1999 Yahoo! Inc. All rights reserved. Terms of Service