In an HTML file named page.html in a folder named pages, the following <a> is found:
<a href="./../index.html">Homepage</a>
The index.html file is in the root folder (one level before pages folder). I know that the path ../ means one level before the level of the current folder (the same as "return one folder"). But what does the ./ together with ../ means to reach index.html in the root folder?
CodePudding user response:
I haven't done anything web related in a while but I'm pretty sure "./" means current page/folder you're on and as stated in your post "../" means one directory up,or could just be a typo for "../../" which means 2 directories up
CodePudding user response:
This can be helpful to you for pathing:
/ is the root of the current drive;
./ is the current directory;
../ is the parent of the current directory.
