My css file will not link to my html file


#1

My browser will open my document and display "Blair Properties", but will not change the color of the text to blue. Both the html and css files are stored in the same folder, I have tried removing quotations and backslashes and do not know what else to try. Please help!

<!DOCTYPE html>

<html>

  <head>

    <title>Blair Properties</title>


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


  </head>


  <body>

    <h1>Blair Properties</h1> 

  </body>

</html>

h1 {
  color: blue;
}

#2

Make sure you're using keyboard's quotes, It worked fine on Jsfiddle tho but not locally (your original code).

(Actually I have changed them and It worked good on local Pc)


#3

Thank you! I had to change the preference on Textedit to not use smartquotes, then my link finally worked.


#4

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