Reputation: 21
I thought the way to link your html file to your css file is to write:
<link type= "text/css" rel= "firststylesheet" href= "firststylesheet.css"/>
(given my css file name is firststylesheet.css
) but when I uploaded the css and html file onto my website, the css file didn't connect, and all the site was reading was my html file. How do I fix this?
Upvotes: 0
Views: 2179
Reputation: 1
I had the same problem, but I noticed that my css, called Stylesheet, missed the ".css". So i manually renamed it stylesheet.css and it worked :)
Upvotes: 0
Reputation: 2132
'rel' attribute has to be "stylesheet" and not "firststylesheet"
<link type="text/css" rel="stylesheet" href="firststylesheet.css"/>
Upvotes: 5