Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6237281
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T10:59:57+00:00 2026-05-24T10:59:57+00:00

In HTML, there are in many pages links which point to a sub-directory, let

  • 0

In HTML, there are in many pages links which point to a sub-directory, let us consider

href="Dir/Subdir/Subdir2/index.html"

On some pages, however, links in a file in a subdirectory point to a different subdirectory at the same level, in a matter as if it was in a relative subdirectory. In other words,

Dir/Subdir/Subdir2/index.html

would contain

a href="Subdir/Subdir3333/index.html"

which would in fact point to

Dir/Subdir/Subdir3333/index.html.

I would think this was wrong, however conventional browsers point to the correct locations.
I have been looking for a solution for quite a while now, though I couldn’t find an answer.

Could you point me to a specific part of HTML documentation which explains how the relative locations work?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T10:59:58+00:00Added an answer on May 24, 2026 at 10:59 am

    You can define a base href attribute in your HTML document’s head which makes all relative URLs start at this BASE url.

    See here.

    Otherwise the relative paths work the same as filesystem paths. / to the root (domain) and ../ to go up one directory.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Many times I've seen links like these in HTML pages: <a href='#' onclick='someFunc(3.1415926); return
There are too many method for embedding flash in html, which way is the
There are so many html and xml libraries built into python , that it's
How can we find how many columns and rows are there in the html
There are lots of questions on how to strip html tags, but not many
I have a 5×7 HTML table. On many queries, there are fewer than 35
I have a page with many HTML lines like this: <ul><li><a href='a_silly_link_that_changes_each_line.php'>the_content_i_need</a></li></ul> Now as
There are many documentaion on internet or user guides which have no pdf. They
The euro (€) is the official currency in 22 European states. In HTML there
var id = 'test'; var dom = $('#loader').clone().load(Views/chatBox.html); dom.find('span.bn').text(id); in chatBox.html,there is : ...

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.