Index.html File Won't Link to CSS File!

Index.html File Won't Link to CSS File!
0.0 0

#1

Hello folks!
I’m having a weird issue with linking my index.html file to my CSS style-sheet. This has never happened befor! In my desktop text editor, when I link to my CSS style-sheet (styles.css) in my tags, everything works, however the same is not happening in GitHub. For the life of me, I cannot understand why! And everything is in the same repository directory, so I can’t figure out what the problem is! View my GitHub here: https://mtzioncode.github.io, of which my html source code is here: https://github.com/MtZionCode/MtZionCode.github.io/blob/master/index.html Thanks in advance for your help!


#2
  <title>
    <head>
    <link rel="stylesheet" type="text/css"  src="styles.css"/>
    </head>
  </title>

Your title element should be a child of your head element, not vice-versa.


#3

@lionel-rowe, I committed that change and it’s still not working…weirdest thing ever! https://mtzioncode.github.io
https://github.com/MtZionCode/MtZionCode.github.io/blob/master/index.html


#4

Take a look at the end of your <link rel="stylesheet" type="text/css" src="styles.css"/>. It may be your / causing the problem even link is a self closing tag and you can add it/or not at the end.


#5

@sorinr, just committed that too…still doesn’t work! <link rel="stylesheet" href="styles.css">


#6

take a look at your code. i just saw it:

    <head>
       <title>
        <head>
        <link rel="stylesheet" href="styles.css">
        </head>
       </title>
    </head>

get the link to the style sheet out of there and put it after the </title>


#7

Hope you noticed you have a nested <head> within another <head> tag


#8

@sorinr, thanks a million! THANKS!