Home  >  Q&A  >  body text

Html cannot link to css

<p>When I started learning CSS, I noticed that whenever I tried to run the code, it no longer showed up. </p> <pre class="brush:html;toolbar:false;"><link rel="stylesheet" href="./css/style.css"/> </pre> <p>My CSS and HTML files are also in the same folder. </p> <p>I haven't had this problem before, so I'm confused as to why it's happening now. I'm using Visual Studio Code. </p>
P粉111641966P粉111641966430 days ago550

reply all(1)I'll reply

  • P粉834840856

    P粉8348408562023-08-17 11:22:19

    You just missed a " in front of stylesheet! :)

    Correct code:

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

    reply
    0
  • Cancelreply