Why is my CSS not linking? (Resolved)


#1

I’m trying to link my CSS file to my HTML index file but none of my CSS is showing up when I load the page in a browser. Both files are in the same folder. What am I doing wrong? Here’s my code:

Thanks!


#2

Because your <link> tag is inside <style> tags. Text inside <style> tags gets interpreted as CSS, and <link> is not a valid CSS instruction. If you remove the <style> tags, it works.


#3

Thank you very much!


#4

No problem.