Html link external css

Hi, I am new to coding and teach year 7 students. Trying to get them to do a basic webpage. html link to external css works for half the class but the same thing does not work for others. Checked spelling, location of files, file names etc. Is there something like a permissions page in their laptop or something else I can look for.

Hello!

Perhaps, it may be extensions, or dark mode causing the issues.
To check if it is either of these, one could try disabling the extensions, and turning off dark mode.

Just a suggestion.

Thanks I will try this.

1 Like

Sometimes, using a different browser can help with resolving issues, too.

I hope this helps you and your students.

This will help with FCC challenges, but not necessarily a solution for code not working outside of FCC if thats the problem. Could help if we could see the code you are mentioning, maybe the code for those its not working for

1 Like

We have tried Edge, Firefox and Google Chrome.

Hi Cody The following links are what I have tried. Those that work are just simply:

Also tried:

And from freecodecamp:

Name

Doesn’t seem to be any difference. I am assuming it has to do with individual laptops because 2 kids side by side can have same code. One works and the other doesn’t. Browsers don’t make a difference either. All kids have the same laptop (school provided new this year).

I have written the links in this reply but when I see it posted it doesn’t show.

If you’re using freeCodeCamp, the CSS file is styles.css not style.css


If you want your code to show, place it between backticks like this:

```
YOUR CODE HERE
```

I found this article on how to connect the external stylesheet with good explanations. Maybe it could be helpful.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.