Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Sep 2012
    Posts
    36
    Thanks
    10
    Thanked 0 Times in 0 Posts

    How to link HTML page to other HTML page in the previous folder

    Ok so if i put

    link1.html and link2.html in a Folder5 and i put href in link1.html to lead to link2.html and from link2.html to link to link1.html it works.

    But i have made link1.html to lead in a folder withing Folder5 called Folder6 where i you can find link2.html and if you click the link it will send you there.

    But how to make the back connection... so that link2.html in Folder6 can lead to link1.html in Folder5 .. cuz if i put just the hreff to lead to link1.html i says that link1.html doesn't exist, because it's looking for it in Folder6... not in Folder5 that contains Folder6.

  • #2
    Regular Coder
    Join Date
    Jun 2010
    Posts
    124
    Thanks
    0
    Thanked 3 Times in 3 Posts
    To do this type <a href="../link1.html" />

    The "../" makes it go back a folder. So if you were two folders deep into our directory and you wanted to go back to the root folder you would use "../../"

  • Users who have thanked pdiddles03 for this post:

    Saber (10-05-2012)

  • #3
    New Coder
    Join Date
    Sep 2012
    Posts
    36
    Thanks
    10
    Thanked 0 Times in 0 Posts
    Thanks


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •