Answers for "how to set a link to a file that is not in the same folder html"

1

how to set a link to a file that is not in the same folder html

Within the same folder, just use the file name:

<a href="theFile.html">my link</a>

Within the parent folder's directory:
<a href="../theFile.html">my link</a>

Within a sub-directory:
<a href="theSubDirectory/thefile.html">my link</a>
Posted by: Guest on September-22-2021

Code answers related to "how to set a link to a file that is not in the same folder html"

Browse Popular Code Answers by Language