Links
Links are one of the main features for web sites.
When a link is clicked it goes to another page.
html for a link
<a href="file1.html">Link Text</a>
Example <a href="3.shtml">Intro to html</a>
Intro to html
(use back button to return to this page)
The first two links are relative
relative links are used within the same web site
A relative link in the same folder uses just the name of the file or ./ before the file name
example ./3.shtml or 3.shtml
Link of Example
with just ./ it will
bring you to the index file or directory list of the folder
Link of Example
/ will bring you to the root
folder of the site
Link of Example
folder names can be added to the root /wscourse/3.shtml
Link of Example
../ will bring you up one folder: ../ from this page will bring us
to Onamia.com's home page
Link of Example
folder names can be added to it ../Nate/
Link of Example
to go up 2 directories: ../../
to go up 3 directories ../../../
(note: directories and folders are used interchangeably in this
tutorial)
Absolute allow links link to outside sites.
This next link is absolute:
<a href="http://www.onamia.com/Nate/">Nate Zone</a>
Nate Zone
Notice the absolute link has the protocol: http:// in front
then the domain Name, server name or IP address: www.onamia.com
then the folder(s) and/or file /Nate/
Previous
WS Course Home
wscourse@onamia.com
© 2003, 2006 Nathan Steffenson