help with html code ( MS frontpage)

jasonz

New Member
im trying to teach myself html and web design. I am currently using Windows Frontpage(got it for 5$ from university). The task i am trying to accomplish is linking one page to another page i've created.

Here i link it to the exact file on it is saved as. using this wont even let me click on the link

<td bgcolor = "silver" height = 25 width = 100 valign= top>
<a href="file:///C:/Documents and Settings/Jason Zidek/My Documents/My Web Sites/index.htm">one</a>
</td>

just using the name and .html allows me to click on it, but it says page cannot be displayed.

<td bgcolor = "silver" height = 25 width = 100 valign= top>
<a href=index.html>one</a>
</td>

thanks if anyone can help.
 
do you really need to put the whole path in? I just think you would need the name of the page if their in the same folder, but then again it's been awhile since I've done any web design
 
Use relative paths. So where ever the page your on is stored use ..\..\blah\ as needed. As for your link, the \ are the wrong way and you don't need the file:/// either ;)

"C:\Documents and Settings\Jason Zidek\My Documents\My Web Sites\index.htm"
 
It depends where you are hosting your site.
If you are hosting your site, an example being www.freewebs.com

Most likely, you will have to put it's path of that site. So if your account on there was jasonz, it will be something like:
http://www.freewebs.com/jasonz/

Now, if you uploaded a file on there, for example your index.htm page and the next page, aboutme.htm, both of the files would be in:
http://www.freewebs.com/jasonz/index.htm
http://www.freewebs.com/jasonz/aboutme.htm

So, you would use the like as:
Code:
<a href="http://www.freewebs.com/jasonz/aboutme.htm">About Me</a>
to point to that site (aboutme) from your index.htm site; and vice versa.

Now, depending on the server you're being hosted on, they might just allow you to put the name as your previously mentioned. Also, the .html and .htm does matter depending on the server. So as it looks in your post, your file is index.htm but you are linking it as index.html
 
Back
Top