I am facing an issue with my base HTML file that I want all other pages to inherit certain characteristics from. The problem arises when I try to link an external CSS file like bootstrap.css
from within my project directory. I have the file stored in the same directory as all the HTML pages, yet it gives me a 404 error when trying to link to it. My file structure is straightforward, with a folder called 'templates' containing all the necessary HTML, CSS, and JS files.
Here is what I am attempting:
<link href="bootstrap.css" rel="stylesheet" media="screen">
And when I try:
<link href="http://localhost/templates/bootstrap.css" rel="stylesheet" media="screen">
I do not receive a 404
error, but upon checking the view source of the web page, I encounter an error message stating:
Firefox can't establish a connection to the server at .
It's puzzling to me why this seemingly simple task is not functioning as expected.