Solved

links

Posted on 1998-12-14
2
168 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Change month dropdown 5 35
Bootstap Icons 3 44
Return data with AJAX, JQUERY and PHP 13 56
HTML Relative path 9 29
Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
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 …

920 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

16 Experts available now in Live!

Get 1:1 Help Now