This Content is from Stack Overflow. Question asked by chester
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:
Index.html is the code that is shown above. When I run index.html everything looks fine but neither one of the links work.
This question is not yet answered, be the first one who answer using the comment. Later the confirmed answer will be published as the solution.
This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.