I had this problem with a site that I knew worked on the Internet when I moved it to localhost and PhpStorm.
This worked fine online:
<link rel="stylesheet" href="/css/additional.css">
But for localhost, I needed to get rid of the slash:
<link rel="stylesheet" href="css/additional.css">
So, I am reinforcing several of the answers presented here already - most likely, it will be a path or spelling error, and not some complex problem with setting up the server. Error in the console - red herring; the network tab should be checked for 404 first.
Among the answers given here, there are several incorrect solutions. Adding type="text/html" or changing href to src not the answer.
If you want to have all the attributes so that they are validated on the most stringent validators and your IDE, then a media value should be provided, and rel should be a stylesheet , for example:
<link rel="stylesheet" href="css/additional.css" type="text/css" media="all">
Henry's Cat
source share