user770022 user770022 - 1 month ago 5x
HTML Question

How do I put a hyperlink to "two levels above in the directory tree"?

I am trying to code my Home button. Is there a way to just climb back up the file structure, instead of using the absolute path like I have below.

I have a file index.html that I have at


Heres my code:

<a id="my-family" href="C:\Users\Randy\Documents\XML\index.html">Home</a>

Heres where I am trying to come from:

Shi Shi

You can use ../index.html to refer to index.html in the parent directory.