PDA

View Full Version : Linking to different page for my html coded webpage?


Logitech
10-09-2007, 05:16 AM
So I have several pages I made using html codes saved to a folder on my computer. The thing is, they all have urls like this:

file:///L:/Justin%20Lo/NEWER/Justin%20lo%20Biography.html
file:///L:/Justin%20Lo/NEWER/justin%20lo%20News%20and%20Update.html
etc..

What would be the code needed so that I can make a link which goes to a page I made? Thanks!
I don't need to upload it to a real site like http://www.... is there a way I can just connect the sites by making a page have it's own "tag" ??
The thing is, the url of my sites always changes because it depends WHERE my folder is located. Plus, when my teacher opens it, the url will not be the same on HIS computer, right?

Share4Good
10-09-2007, 05:16 AM
Check this out:
http://www.w3schools.com/html/html_links.asp
There are also great but free lessons in that website about web design and web programming.

thethirdheat
10-09-2007, 05:16 AM
If all your files are in the same directory/folder in windows, then this should work:

<a href="file1.html">This is what will display in the browser</a>
<a href="anotherFile.html">This is another file</a>

The name of the HTML file is in between the " ". So change "file1.html" to whatever your file name is and change "This is what will display in the browser" to what you wish to display in the browser.

If the web page is not local, but on the internet, replace the file name in quotes i.e. "file1.html" with a URL "www.google.com" so it would be:

<a href="www.google.com">This would link to google</a>

Alex
10-09-2007, 05:16 AM
You would actually want to take the HTML from those files and place them onto a webpage. Such as FreeWebs. That would be much more easier and safer to use/view. I hope this helps!