html link to html in folder code example

Example 1: how to link html pages in different folders

<!-- Below this comment is a same folder link -->
<a href="yourfile.html"> same folder</a>
<!-- Below this comment is a link with a parrent folder -->
<a href="../yourfile.html">parrent folder</a>
<!-- Below this comment is a link that you can put the folder directory in -->
<a href="subdir/thefile.html">sub-directory</a>

Example 2: html link file in another folder

<a href="subdir/thefile.html">my link</a>