![]() |
|
[Help] Why isn't my HTML document linking properly to my CSS file? - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Coders Lounge (https://hackforums.net/forumdisplay.php?fid=5) +---- Thread: [Help] Why isn't my HTML document linking properly to my CSS file? (/showthread.php?tid=6014806) |
Why isn't my HTML document linking properly to my CSS file? - craigOwnsYou - Oct 8, 2019 So I try this HTML document I have been working on as presented in the video: Code <!DOCTYPE html>And here's the CSS code: Code * {Could someone please point out why it doesn't link properly to the CSS code? I really need help with this. I googled it and got someone else who asked and got an answer someone gave to that guy who asked and that person's answer didn't work. I can't figure out why my CSS code just doesn't quite link. Why isn't my code linking!? It makes no sense!!! I fixed it!!! Part of the css link was wrong. RE: Why isn't my HTML document linking properly to my CSS file? - Nachfolger - Oct 9, 2019 I see that you fixed it, but I want to make sure it's obvious to everyone else. Take note of the type attribute. Code <link rel="stylesheet" type="type/css" href="styling.css">Fixed code Code <link rel="stylesheet" type="text/css" href="styling.css" />RE: Why isn't my HTML document linking properly to my CSS file? - de_g3ntl3m4n - Oct 9, 2019 was going to say, gotta love making sure syntax is correct cause one small move everything falls RE: Why isn't my HTML document linking properly to my CSS file? - Deal - Oct 9, 2019 (Oct 9, 2019 08:29 AM)Crispysandwhich Wrote: was going to say, gotta love making sure syntax is correct cause one small move everything falls Agreed. A Capital letter, a wrongly placed space, etc. can cause issues. RE: Why isn't my HTML document linking properly to my CSS file? - Nachfolger - Oct 9, 2019 (Oct 9, 2019 08:30 AM)Deal Wrote: Agreed. A Capital letter, a wrongly placed space, etc. can cause issues.Except, neither of these two things you listed would cause an issue with most HTML elements, let alone a link element. Valid Code <link rel="stylesheet" type="text/css" href="style.css" />Valid Code <LINK rel="stylesheet" type="text/css" href="style.css" />Valid Code <link rel=" stylesheet " type="text/css" href="style.css" />Valid Code <link Rel="stylesheet" type="text/css" href="style.css" />Heck, even this is valid Code <link rel=" Stylesheet " type="text/css" href="style.css" />Valid Code <link rel= "stylesheet" type="text/css" href="style.css" />You get the point. Don't spew nonsense just to rack posts up. RE: Why isn't my HTML document linking properly to my CSS file? - Deal - Oct 9, 2019 (Oct 9, 2019 08:41 AM)Nachfolger Wrote: Except, neither of these two things you listed would cause an issue with most HTML elements, let alone a link element. I’m talking generally. Not just in relation to one fucking line you giant dumbass. So a capital letter doesn’t affect selectors? A capital letter does not affect attributes? If his css is called styles.css but he writes Styles.css that doesn’t affect it? Giant moron. Shut the fuck up who are you even |