Why is my CSS file not linking to the HTML

Everything is in the same file and I believe my code + structure is all correct for the most part however the css still doesn’t link to the html.

tip for sending code:
use the ` backtick to display code in a way it can be copied and pasted

  • one backtick surounding one line of text = <h1>test</h1>
  • three backticks above and bellow text block
<header>
    <h1>test</h1>
</header>

back ticks can be bfound in the top left of some keyboards, Alt+096 will also display a backtick

I typed out your code and found it linked. :confused:
Its possible you may have forgotten to save changes. you can do this quickly by Ctrl+s.

its also possible the browser needs refreshing. you can have the browser refresh automatically using <meta http-equiv="refresh" content="10"/>
this will refresh the browser automatically every 10 seconds, you can change the content to be as many seconds as you like.

using refresh can be problematic when inspecting the browser webpage, it is best to comment out the line if you need to inspect something. It is also best to remove it altogether before uploading the page.

hope this helps you :smiley:

Thanks so much that did help, appreciate that.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.