Link Html File to CSS on OS X

I have been having trouble linking my HTML file to my CSS file. I have used text edit and both files are on my desktop. If it helps, my CSS file is named style and is in the same folder as my HTML file. I probably have just made a rookie mistake but the help is much appreciated! (note: when ever I open my CSS file in safari, it displays the code in text form, not the result. This may show that the file formatted incorrectly)

<head>
  <link rel="stylesheet" type="text/css" href=“style.css">
  <title>Bears</title>
</head>

yes, here:

href=“style.css"

one of the quotation marks (") you use isn’t actually a quotation mark

3 Likes

Thank you so much! I think the apple default quotation mark might be messed up because it is angled. I copy and pasted your quotation mark in and it works now.

1 Like

yes, i think they are called smart quotes, you could consider disabling them:

good to hear its fixed :slight_smile:

3 Likes