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 5 of 5
  1. #1
    Regular Coder
    Join Date
    Nov 2005
    Posts
    750
    Thanks
    138
    Thanked 1 Time in 1 Post

    Simple structure question

    Hello

    I have an index.html page which I am trying to link to other html pages which are held in their own directory 'imagemenu'.

    Would index.html see rates.html in the following way:

    <a href="/rates.html">Rates</a>

    I can't seem to get that to work - or should I actually stipulate the name of the folder?

    Alternatively, is it best to put these (and other html pages I have which, together, make up the Web site) pages together, without separating them from the main index page - they do not need to be separated.

    Thanks.

    Steve

  • #2
    Regular Coder
    Join Date
    Jun 2008
    Posts
    173
    Thanks
    2
    Thanked 9 Times in 9 Posts
    if your index page is on root folder and rates.html page in "imagemenu" folder then you will access rates.html like

    <a href="imagemenu/rates.html">rates</a>

    through index.html page.

    vineet

  • Users who have thanked vineet for this post:

    SteveH (12-15-2009)

  • #3
    Regular Coder
    Join Date
    Nov 2005
    Posts
    750
    Thanks
    138
    Thanked 1 Time in 1 Post
    Hello vineet

    Thanks for getting back to me.

    That works - cheers!

    Steve

  • #4
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,852
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    I have an index.html page which I am trying to link to other html pages which are held in their own directory 'imagemenu'.

    Would index.html see rates.html in the following way:

    <a href="/rates.html">Rates</a>
    I'd prefer
    Code:
    <a href="/imagemenu/rates.html">rates</a>
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #5
    LE1
    LE1 is offline
    New Coder
    Join Date
    Nov 2009
    Posts
    47
    Thanks
    4
    Thanked 1 Time in 1 Post
    Quote Originally Posted by SteveH View Post

    Alternatively, is it best to put these (and other html pages I have which, together, make up the Web site) pages together, without separating them from the main index page - they do not need to be separated.

    Thanks.

    Steve
    I always put all html pages in root.
    I suppose if you do bigger more complex websites then directories needed.


  •  

    Posting Permissions

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