Solved

HTML question about HREF=file:     It's pointing to an old location!

Posted on 2013-11-17
4
343 Views
Last Modified: 2013-11-17
I uploaded a simple web page "A" but a link to page "B" isn't working and when I hover my mouse over the hyperlink I see the school student lab mapped drive where I created the page.  This doesn't make sense.  why would it transfer that to my web page  I'm now working on this site at home.

Needless to say, my simple link to another page isn't working.
1.  What is this bad href=  what does it stand for?
2.  How to fix?

  href="file:///\\LAB01\Users\BroTrofski\Private\site\contact.htm"
0
Comment
Question by:brothertruffle880
  • 2
4 Comments
 
LVL 58

Accepted Solution

by:
Gary earned 500 total points
ID: 39655255
Your link should look like this

<a href="/contact.htm">My Link</a>

This would look for contact.htm in the sites root folder.

You cannot link to local resources from an external website.
0
 

Author Comment

by:brothertruffle880
ID: 39655288
Gary:
I didn't create that link.   I just saved the web page file as a simple HTML file and the software did it.
0
 
LVL 58

Expert Comment

by:Gary
ID: 39655297
What software
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 39655301
Saving the file to your own computer makes it a local file.  Where is the confusion?
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
This video teaches users how to migrate an existing Wordpress website to a new domain.

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now