I\'m trying to load a css file. I\'ve tried:
And:
I want to post my own version of the answer on this very old thread as I just found a possibly known but 'ignored-after-solving' way of getting into this problem of CSS just refusing to link with the HTML. I spent hours on trying to solve the problem and in the end, it turned out to be a very trivial thing. Do not want others to go through the same ordeal. So here we go:
Since I was new to HTML/CSS I tried to copy some sample code snippets from the internet. While doing so I linked my CSS file as follows:
While at first glance the code looks perfectly fine, on viewing carefully (which unfortunately I did after hours of googling around) it turns out that the quotation marks I had used (copied from internet code) were not really quotation marks but some other characters. I found this because they looked smaller when compared to other quotation marks typed in my code elsewhere and which looked more like: ""
On realizing this I changed the quotations in the CSS link:
and lo-behold everything started working beautifully (thanks CSS).
Lesson learned - Beware of copy/paste from the internet.
I wish I had been more diligent earlier.
Hope this helps some searching soul in future!!