Solved

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

Posted on 2008-06-19
3
160 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
ID: 21826216
<a= href"/image/gallery/three_folders_deep.htm"l>

make sure you put quotes around the value.
0
 

Author Comment

by:djmichaelray
ID: 21826232
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
ID: 21826261
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

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

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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…
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…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

911 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

23 Experts available now in Live!

Get 1:1 Help Now