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!
<title> <head> <link rel="stylesheet" type="text/css" src="styles.css"/> </head> </title>
title element should be a child of your
head element, not vice-versa.
@lionel-rowe, I committed that change and it’s still not working…weirdest thing ever! https://mtzioncode.github.io
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.
@sorinr, just committed that too…still doesn’t work!
<link rel="stylesheet" href="styles.css">
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
Hope you noticed you have a nested
<head> within another
@sorinr, thanks a million! THANKS!
I have a similar issue, below is my code:
and i still cannot have it linked. Styles.css file is in the folder named css.
styles.css and index.html are in the same levels.
Have i missed out anything?
i have same problem plz help when i use code with html and java script it works. when i add css it stops working sive me solutions