
|
Links
A link in an HTML page is created using the <A> tag as follows:
<A HREF="File to which you want to link">Text or image to be clicked</A>
Relative Pathnames
- HREF="headings.html"
- headings.html is located in the current directory(or folder).
- HREF="design/glossary.html"
- glossary.html is located in the directory called design which is located in the current directory.
- HREF="design/images/icon.jpg"
- icon.jpg is located in the images directory,which is located in the design directory,
which is located in the current directory.
- HREF="../index.html"
- index.html is located in the directory one level up from the current directory.
- HREF="../../master/index.html"
- index.html is located two directory levels up, in the directory master.
Absolute Pathnames
- HREF="/u1/walsh/file.html"
- file.html is located in the directory /u1/walsh (typically on UNIX systems).
- HREF="/d:/files/html/file.html"
- file.html is located on the D: disc in the directories files/html(on DOS systems).
- HREF="/Hard Disk 1/HTML Files/file.html"
- file.html is located on the disk Hard Disk 1, in the folder HTML Files(typically on Macintosh systems).
Links to Documents on the Web
- HREF="http://www.yahoo.com"
- links to yahoo's home page
|