How do you reference another file within a folder in HTML?

Viewed 18

I'm trying to figure out how to use files in HTML but for some reason this code isn't working.

<html>
        <title>HTML Experiments</title>
        <h1>This is a website that I made</h1>
        <ul>
            
            <li>Here is another file: <a href="InsideTheRootFile#1.html">another file</a></li>
            <li>Here is an extra file: <a href="extras#1/insideextras.html">extras</a></li>
            
        </ul>
</html>

Here is a screenshot of the folders: folders screenshot

Index.html is the code that is shown above. When I run index.html everything looks fine but neither one of the links work.

0 Answers
Related