Error when importing stylesheet in html page

-1

I try to link my external css to the html, but it does not work for me, that is, it does not load the style.

    
asked by Juan Carlos Lopez 29.11.2018 в 21:45
source

3 answers

0

The path is wrong, as your file index.html and the folder estilo are in the same directory, just this route is enough: estilo/style.css .

You can use it like this:

<link rel="style" href="estilo/style.css">
    
answered by 29.11.2018 в 21:52
0

The problem is that in the link you are uploading a level, that is, you put it .. and it will look for the css in the folder at the same level as the CODE folder. Keep in mind that the href is relative to the location of your HTML.

Try putting it that way, it should work:

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

Good luck!

    
answered by 29.11.2018 в 21:53
0

Thank you very much for your comments: I did what they suggested, but it does not work yet: I hit a screenshot with a view to the inspector

Greetings and thanks!

    
answered by 29.11.2018 в 22:04