I feel stupid and like I have taking 3 steps back in my learning. I am trying to figure out the 3 different implementations of css. Doing External now. Just trying this super simple code, the colors did not show up in the browser like they did on w3schools.
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
Is it because I don't have a css file on my computer? Do I need to download one? Copy and paste from somewhere? I don't get it. I prefer building with the css and html on the same document because I haven't learned how to do anything else yet. I have been able to follow tutorials fine but for some reason, now it's not clicking.
How do i link my css stylesheet to my html?
HTML/CSS linking
Where should I add CSS to my file?
Linking CSS stylesheet to index.html
Videos
Newbie here, and I'm trying to work on designing a blog for practice, but I'm confusing myself on where the CSS should go. I have a whole separate file for CSS that I linked to, but it wasn't linking. The only thing that helped CSS show up in the test blog was when I added it to the head section of the HTML file. So my question is, when do I use a separate CSS file and when do I add it to the HTML file?