Home > Enterprise >  CSS file can't be recognized by HTML
CSS file can't be recognized by HTML

Time:12-25

I recently started learning HTML & CSS. my issue is that HTML file doesn't recognize CSS codes, I checked everything but still, maybe you guys can help me? thanks!

My HTML file: enter image description here

My CSS file: enter image description here

CodePudding user response:

Just a small spelling mistake. You wrote "stlyesheet" instead of "stylesheet" in line 6 of the html file.

CodePudding user response:

HTML

<link rel="stylesheet" type="text/css" href="./style.css">

Please try this

CodePudding user response:

I also experienced this problem once, replace your link with

<link rel="stylesheet" href="C:/users/theyc/OneDrive/Desktop/Websites/Online Store/style.css">

If it doesen't work, please tell if you are using only frontend i.e opening with file:// or using backend i.e opening with http://

  • Related