Solved

Regarding Pointing to the right file on my webserver. Really simple question

Posted on 2008-06-19
3
159 Views
Last Modified: 2013-11-19
what is the code i put in an  a href tag to point backwards in my folder structure.

Example:

if i had the following folder structure on my webserver

main_folder   which had 2 folders in side it
             Let call them Images and Video

Inside the images folder lets say there is one more folder called GALLERY

and inside the gallery folder is an html page we will call three_folders_deep.html
 
so from my index page which is found in main folder i can link to the three_folders_deep.html page by simply putting in

<a= href"image/gallery/three_folders_deep.html>

With me so far I hope. Okay so my quesiton is that if im coding the links for the three_folders_deep.html page and i want to link back to other index pages or pictures found in the main_folder (i.e 2 folders backwards from where we are now)  what would the structure look like

you can use a simple <a href> tag to show me an example thanks you
0
Comment
Question by:djmichaelray
  • 2
3 Comments
 
LVL 82

Expert Comment

by:hielo
Comment Utility
<a= href"/image/gallery/three_folders_deep.htm"l>

make sure you put quotes around the value.
0
 

Author Comment

by:djmichaelray
Comment Utility
thank you does the slash at the beggining in front of images change deping on how deep you go into folders?
0
 
LVL 82

Accepted Solution

by:
hielo earned 500 total points
Comment Utility
The leading slash instructs the browser to start from the top-most folder. So no matter how deeply neested your current page is what I gave you should always find the image (if you did not mistyped the name).
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

763 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

7 Experts available now in Live!

Get 1:1 Help Now