I could some help, I feel like im missing something so simple here. I amtrying to add my style.css sheet to my HTML Here is my code below. When I do this the CSS I added for the image does not reflect.
this is what chat gpt gave me if it dosn’t work i can think of 2 reason, if your style sheet isn’t in the same folder you might have to change it to “…/style.css”/> or if your not properly applying your styles to an img property and it might help to give it an id or class and try to apply to that instead.
<link rel="stylesheet" href="style.css" /> <!-- Move the link tag here -->
<style>
img {
width: 25px;
background-color: red;
}
</style> <!-- Place the style tag here -->
Put your CSS link element(s) into the header section.
If you have linked your css to an external file it is best practice to delete your style tags. But keep in mind that they can be useful for debugging (like in this case).
Opt for file names with no spaces and/or special characters. Use underscores, dashes or camelCasing to name your files and folders to avoid errors with URLs and filepaths.
Cheers.