I am learning HTML and have written a couple of HTML scripts. I also know how to use CSS to style HTML webpages. I have an issue with linking a css file in my github page to a HTML script in my local computer. I am still practising HTML, but I can view how the HTML looks on a webpage through the HTML Preview
extension in VS Code.
Here is my HTML code:
<html>
<head>
<title>A Big Title</title>
<link rel="stylesheet" type="text/css" href="https://raw.githubusercontent.com/sammigachuhi/millennial_blogs/main/blog_styles.css">
</head>
<body>
<h1>Header One</h1>
<p>
Blah blah blah
</p>
</body>
</html>
The link to my html inside the href attribute is not working. I tried following advice from here where they mention changing it to read something like "https://sammigachuhi.github.io/millennial_blogs/main/blog_styles.css" to no avail. However, when I try with an publicly accessible css file such as href="http://www.w3schools.com/html/styles.css"
the html changes to match the contents of that css file.
Could it be something with gitHub? Here is the link to my raw CSS file.