Solution 1 :

<link rel="stylesheet" href="./css/style.css"/>

This should do it, or you can also replace your type=”type/css” to type=”text/css”

type=”type/css” is not the correct link type.

Solution 2 :

You should be careful of using / prefix in the paths.

Also, there’s no link type called type/css. It’s text/css.

Both of these will work:

<link rel="stylesheet" type="text/css" href="css/style.css"/>
<link rel="stylesheet" type="text/css" href="./css/style.css"/>

Solution 3 :

Set the type to "text/css". Also, try not to use a / at the beginning of your file paths if you can.

You can use this line instead.

<link rel="stylesheet" type="text/css" href="css/style.css"/>

Problem :

I am trying to make a website, and my css seems not to exist, no error, no style, nothing.
This is what I have got:

<link rel="stylesheet" type="type/css" href="/css/style.css"/>

This is the path:

index.html /css –> style.css

I went to the console to search after any error, there is no error, none. In fact, I went to the sources, and it is not even there.

Please, I would like to get feedback, thank you.

Comments

Comment posted by stackoverflow.com/questions/2718532/…

Related, but maybe not a duplicate:

Comment posted by Noah B.

Thank you, pardon my lapsus, I was tired.

Comment posted by Noah B.

Thank you, pardon my lapsus, I was tired.

By