Solved

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

Posted on 2013-11-17
4
371 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Increase Agility with Enabled Toolchains

Connect your existing build, deployment, management, monitoring, and collaboration platforms. From Puppet to Chef, HipChat to Slack, ServiceNow to JIRA, Splunk to New Relic and beyond, hand off data between systems to engage the right people.

Connect with xMatters.

Question has a verified solution.

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

Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
CTAs encourage people to do something specific to show interest in your company, product or service. Keep reading to learn why CTAs should always be thought of as extremely important, albeit small, sections of websites.
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 …
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

695 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