+ 1
Why is my External CSS not working?
I have been looking at questions with answers and none of the answers are helping my situation. Here is my code: https://code.sololearn.com/W169EC2VW99k/#html I cannot figure this out Thanks in advance for anyone who helps!
15 Respostas
+ 5
You are using relative path
<link rel="stylesheet" type="text/css" href="styles.css">
It means that the browser will look for this styles.css file in the same directory (folder) as this html file.
If you still don't understand, please browse this video :
CSS Tutorial for Beginners #06 - External Stylesheet, by Net Ninja
https://youtu.be/Wj2iI7w37Y0
+ 3
Dont know if it is important but normally link is in the head section
+ 3
Kristofer Schultheis You are welcome. Good luck with your learning.
+ 2
You are referencing a file named styleS.css, is your actual css file also named with s at the end?
+ 2
Gordon ah yesđ
+ 1
Kristofer Schultheis For HTML code structure, please revisit this lesson:
https://www.sololearn.com/learn/HTML/1022/
0
@Gordon
Yes, it is named styles.css and it is in the same folder as my html file.
0
Oma Falk It is not a good practice for <link> to be not in <head>, but it still effects. đ
0
Kristofer Schultheis Do you have github account? Can you upload your files onto github and share the repo url here?
0
Where should I put my <head> tags in my document then? (I'm very new at coding and don't fully understand it)
0
@Gordon
Just figured it out from your first answer! I don't really know how it worked but after changing a few names, it worked.
Thanks!
0
Check your link very well most times spelling errors or not properly addressing the link according to how you save your documents
0
Write this after head code
<link rel="stylesheet"href="style.css">
0
Where write animation css code in html?
0
Sosooo please make a new post from it if necessary after applying searchbar