homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

Relative Links
Linking UP with a relative link

 3:16 am on Dec 31, 2005 (gmt 0)

Now, everyone always raves about relative links, and I can understand why, it makes alot of things easier. I don't use them very often, for one reason, I don't know how to go UP a directory.

A file in the top directory of my site (example.com, lets say) can relatively link to a lower folder, so instead of writing the link as http://www.example.com/photos/file.html I can just write photos/file.html. But if I'm editing photos/file.html, how do I relativley link back to the file in the top directory? And how do I relatively link to a file in a different folder than photos?



 3:54 am on Dec 31, 2005 (gmt 0)

./ <- current directory. Handy if you want to link to the index page without to use something like 'index.html'.

../ <- parent directory.


 4:58 am on Dec 31, 2005 (gmt 0)


Thank you so much!

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved