Ask coding questions

← Back to all posts
Why won't my CSS work?
TaylorHEvans

So, i'm learning how to apply CSS and started to apply it to my website, when i found out that for some reason the CSS won't work. I was also told that i can't use inline CSS, it has to be on a seperate file. Thing is, the same code worked fine on a test page.

Voters
TaylorHEvans
Comments
hotnewtop
MrVoo

I don't think you ever linked it, add this in the head; <link rel="stylesheet" href="styles.css">

TaylorHEvans

@MrVoo It worked! thank you so much.