Can't Get Relative Links To Work

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I've created two html files and put them in the same directory. One of the
pages has a relative link to the other one, but the browser can't find the
linked to page.

This is the line in the page that contains the link:

<a href="RelativeLinkPage.html">To A Page In Same Directory</a>

The filename for the page that is linked to is RelativeLinkPage.html

Both files are in the same directory. I can open the RelativeLinkPage.html
page by clicking on it, yet I'm unable to open it from the link on the page
that has the line shown above. IE says that it can't find the file. I saved
both files using the HTML option of the Save As Type combobox. Should I not
have saved these files as type HTML?
 
Never mind. The problem was the .html extension in the link. The files were
actually saved as .htm files. Correcting the extension in the link took care
of the problem.
 
Back
Top