I am trying to link to my own html page that I have created in CS50 IDE. The html code is below. I have included 8 variations on trying to find the file. All return error 404.
I have the file: "pct.html" saved under the "templates" sub-directory and in the root project directory.
The last link is to an external website and works fine.
Any help to allow the href to work - either as a straight link or within the button - is appreciated. (I was using the button because I preferred that look and feel of the page with the buttons.)
There is more html in this file which is patterned after the layout file from Pset8-Finance; however, the clicking on the link will not open the pct.html file.
<a href="pct.html">Income needed in retirement</a>
<a href="pct.html" class="button">Income needed in retirement</a>
<br>
<a href="/pct.html">Income needed in retirement</a>
<a href="/pct.html" class="button">Income needed in retirement</a>
<br>
<a href="templates/pct.html">Income needed in retirement</a>
<a href="templates/pct.html" class="button">Income needed in retirement</a>
<br>
<a href="/templates/pct.html">Income needed in retirement</a>
<a href="/templates/pct.html" class="button">Income needed in retirement</a>
<br>
<a href="https://www.fidelity.com/viewpoints/retirement/spending-in-retirement" class="button">You need 50-80% of your income in retirement</a>
</form>
{% endblock %}