Solved

links

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Bootstrap 3 - Style a dropdown 1 27
href return to normal window 5 31
Table style position to the left 8 26
Increase image taller on inner pages 2 19
Find out what you should include to make the best professional email signature for your organization.
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

730 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