Solved

links

Posted on 1998-12-14
2
159 Views
Last Modified: 2010-04-09
do I have to submit my page to get the links to oter files to work? if not then please give a detailed descripsion on how to do it. thank you.
0
Comment
Question by:ryanmsmith
2 Comments
 
LVL 2

Expert Comment

by:estest
ID: 1840641
Hmm...

Hard to tell what you are trying to do. Are you trying to test the links on your page, while it resides on your local machine?
0
 
LVL 4

Accepted Solution

by:
rafistern earned 50 total points
ID: 1840642
Links to other pages may be written in two ways:
1. <a href="http://www.somewhere.com/apage.html">link</a>
or <a href="/index.html">link</a>
2. <a href="../../anotherpage.html">link</a>

The first form is an "absolute" link in that it defines the absolute path to the page. Note that I have given two forms. In the first your are giving a full URL of the page and in the second you are giving the absolute path of a local file (from the root directory of your site).

The second form is a "relative" link in that it defines the position of the page in relation to the position of the current page.


If your other files are also present on your computer, then you can link to them using a relative path and the links should work.

If they are present on your comuter but you wrote them as an absolute path then the chances are that the links will not work until you submit the whole site to the server.

If the links are to another site then they must be defined as absolute paths and may be accessed also while your files are on your local computer provided you have have Internet access.

I hope this answers your question.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
This article discusses how to create an extensible mechanism for linked drop downs.
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
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 …

746 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

11 Experts available now in Live!

Get 1:1 Help Now