You can't have spaces in a URL, try changing the space to its ASCII character: %20 so it would look like this:

<link rel="stylesheet" type="text/css" href="new%201.css">

Or what I would normally do is use proper file naming conventions, either camel case (every word [ besides the first one] starts with an upper case letter) or use underscores between the names.

Answer from Haring10 on Stack Overflow
🌐
freeCodeCamp
forum.freecodecamp.org › html-css
External CSS File not Working - HTML-CSS - The freeCodeCamp Forum
January 12, 2025 - I’m trying to understand the structure and syntax for writing external CSS files. I have an HTML file and a CSS file. The HTML file is in a project folder. That folder also contains things I plan to use that will be p…
Discussions

External css is not working, please help?
I have two files, both in the same folder. home.html - linkforthesame styles.css - linkforthesame The external css is not working, please help. More on forum.freecodecamp.org
🌐 forum.freecodecamp.org
0
0
March 14, 2020
html - why is my external css not working? - Stack Overflow
I am trying to link an external stylesheet to all my pages but it is not rendering. It works only on my homepage but not on other pages. I am using the exact same link on all pages and it is still ... More on stackoverflow.com
🌐 stackoverflow.com
External CSS not working!
Corey Lyons is having issues with: I'm doing everything else ok but when I get to the part where he does the external style sheet I don't understand why there's nothing happening.... More on teamtreehouse.com
🌐 teamtreehouse.com
7
February 15, 2014
My HTML is partially not recognizing my external CSS file
You forgot ; after font-family. More on reddit.com
🌐 r/css
13
1
June 6, 2025
🌐
Sololearn
sololearn.com › en › Discuss › 2174843 › why-is-my-external-css-not-working
Why is my External CSS not working? | Sololearn: Learn to code for FREE!
@Gordon Just figured it out from your first answer! I don't really know how it worked but after changing a few names, it worked. Thanks! ... Check your link very well most times spelling errors or not properly addressing the link according to how you save your documents
🌐
freeCodeCamp
forum.freecodecamp.org › t › external-css-is-not-working-please-help › 358531
External css is not working, please help? - The freeCodeCamp Forum
March 14, 2020 - I have two files, both in the same folder. home.html - linkforthesame styles.css - linkforthesame The external css is not working, please help.
🌐
meyerweb
meyerweb.com › eric › articles › webrev › 199904.html
Help! My CSS Isn't Working!
Rip it out, delete it, or turn it into a CSS comment, like the first line of the file. Thus, the "new styles below" comment should look like this: ... Don't do this! You need the STYLE tag when you're embedding a stylesheet in an HTML document, it's true, but this tag should not-- indeed, cannot-- appear in an external stylesheet.
🌐
Raspberry Pi Forums
forums.raspberrypi.com › board index › programming › other programming languages
External CSS Sheet Not Applying - Raspberry Pi Forums
If there is anything it cannot download, like your CSS file, it will show an error and indicate what it is trying to fetch from your servers. That will help you fix your problem. Meanwhile if you watch the access and error log files of your web server when you try to load that page you will see what files your server thinks it was asked for and what errors it returned if it could not find them. With all that information in hand you will be able to get it to work.
🌐
Arch Linux Forums
bbs.archlinux.org › viewtopic.php
[SOLVED] external css files don't work with html5 doctype. / Programming & Scripting / Arch Linux Forums
But honestly I'm not up-to-date what the modern browser consider valid html5 and what not. But my guess is: you need to enclose your sample text in <p> or <div> or something. Otherwise, the text breaks ou tof the body-structure and the body in considered empty. ... Yes, it works when CSS code in inside html.
Find elsewhere
🌐
Reddit
reddit.com › r/css › my html is partially not recognizing my external css file
r/css on Reddit: My HTML is partially not recognizing my external CSS file
June 6, 2025 -

[SOLVED]

Hello! As of yesterday, I am currently learning HTML and CSS to create my own personal website on neocities. I use Phoenix Code editor (future generation of Brackets) to write these codes, so since it's a relatively new editor software, I presume that not many people here are familiar with it. Therefore, I just hope it's got nothing to do with the program itself, and it's just something in general that I as a newbie have overlooked.

I have followed w3schools HTML and CSS tutorials closely, so I'm 90% sure my code is written correctly, and something else outside it is maybe the issue here. Edit: Nope, I wrote something wrong lol. Thanks to u/ole1993 for the quick answer!

The HTML and CSS files should be linked correctly, writing this in my HTML document:
<link rel="stylesheet" href="style.css"/> , with the file named "style" and the extension "css". Located in the same directory.

CSS file working with color, but not font size or font family

Here's a video of the CSS file not working as should; I can change the colors, but I *can't* change the font-size and font-family? Why?

Here are what my codes look like:

HTML:

<!doctype html>
<!-- Color cheat sheet:
Reseda green: 677C5F, Feldgrau: 4B5C47, Baby powder: FEFEFC, Vanilla: FFF5AD
Puce: D07B8E, Pink lavender: F1BBDD, Moss green: 8D9440 -->
<html lang>
<head>
<title>EllenPlayz</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>My personal website</h1>
<p>Welcome to my corner of the internet!</p>
<p>
<a href="https://imgur.com/gallery/cats-kxFxG0D#/t/wallpaper"
>Click here to check this cool picture of a cat</a
>
</p>
<h2>Interests</h2>
<ul>
<li>Digital Art</li>
<li>Rock music</li>
<li><a href="https://i.imgur.com/i5z74E2.jpeg">Pretty flowers</a></li>
</ul>
<h2>Types of games I love</h2>
<ul>
<li>Flash games</li>
<li>Ps2 games</li>
<li>CD-Roms</li>
</ul>
<img
src="images/EltonPixel.gif"
width="200px"
height="200px" />
</body>
</html>

CSS (style.css)

body {
    font-family: arial
    font-size 16px;
    color: #8d9440;
    background-color: #fff5ad;
}
h1 {
    color: #c7647a;
    background-color: #f1bbdd;
}
h2 {
    font-size: 1.5em;
    color: #677c5f;
    background-color: #bee270;
    margin: 10px;
    padding: 10px;
}

All help or input is greatly appreciated, and let me know if I lack any important context for information. Thank you!

🌐
sebhastian
sebhastian.com › css-not-linking-html
How to fix CSS not linking to your HTML document | sebhastian
August 17, 2021 - Here are six fixes that you can try to make your CSS work on your HTML page · When you add an external CSS file to your HTML document, you need to add the rel="stylesheet" attribute to the <link> tag to make it work.
🌐
Team Treehouse
teamtreehouse.com › community › external-css-style-sheet-doesnt-work
external css style sheet doesn't work (Example) | Treehouse Community
August 5, 2014 - So I have put the main.css inside of my css folder and added the link in my index.html, like this "<link rel="stylesheet" href="css/main.css">". However, it just doesn't do anything like the CSS style sheet is not there. ... Well, that's not how you'd add a link. By putting " " you're essentially linking it to nowhere. This is how you'd make a proper external link:
🌐
DaniWeb
daniweb.com › digital-media › ui-ux-design › threads › 479695 › external-style-sheet-not-working-in-html-php
web design - external style sheet not working in html/php [SOLVED] | DaniWeb
If there are errors related to loading the external style sheet, the error will be listed there. — JorgeM 958 Jump to Post · <link rel="stylesheet" type="text/css" href="bground.css"> A lot of times when that doesn't work for me, I would put the css file in a server and then rewriting it as: <link rel="stylesheet" type="text/css" href="http://yoursite.com/css/bground.css"> — <M/> 170 Jump to Post
🌐
Reddit
reddit.com › r/css › why is it when i use this css code in my external css file it does not work at all, however if i use it as an internal edit, it works just fine.
r/css on Reddit: Why is it when I use this CSS code in my external CSS file it does not work at all, however if I use it as an internal <style> edit, it works just fine.
January 12, 2019 -
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>Practice Site</title>
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="stylesheet" href="style.css">
        <link rel="stylesheet" href="reset.css">
        <link rel="stylesheet" href="debug.css">
        <link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet"> 
    </head>
    <body>
        <article>
            <p class="debug-centre">ARTICLE</p>
        </article>
        <article>
            <p class="debug-centre">ARTICLE</p>
        </article>
        <article>
            <p class="debug-centre">ARTICLE</p>
        </article>
    </body>
</html>

This is the HTML to my website titled index.html

article {
    display: grid;
    grid-template-columns: 1fr minmax(0, 8.5in) 1fr;
    height: 100vh; /* temp fix */
    padding: 0.5in 0;
    }

article * {
    grid-column: 2/3;
}

And this is my external stylesheet style.css

Now, when I try to add padding to the <article> via my external CSS it does not work, even with the identical code. It only works if I copy paste it into the HTML file using <script>.

How can I fix this, and why does this happen?

🌐
GitHub
github.com › AngleSharp › AngleSharp.Css › issues › 140
External CSS not working from <link> · Issue #140 · AngleSharp/AngleSharp.Css
April 19, 2023 - var config = Configuration.Default .WithRenderDevice( new DefaultRenderDevice { DeviceWidth = 1920, DeviceHeight = 1080 }) .WithDefaultLoader( new LoaderOptions() { IsNavigationDisabled = true, IsResourceLoadingEnabled = true }) .WithCss(); var context = BrowsingContext.New(config); var doc = await context.OpenAsync(req => req.Content(@""" <html> <head><link href=""https://some/tested/url.css"" rel=""stylesheet""></head> <body><label>HI</label></body> </html> """)); /*var style = doc.CreateElement<IHtmlStyleElement>(); style.TextContent = File.ReadAllText("some/actual/file.css"); doc.Head?.App
Author   cyraid
🌐
Sololearn
sololearn.com › en › Discuss › 2608435 › why-doesnt-my-external-css-file-work
Why doesn't my external .css file work? | Sololearn: Learn to code for FREE!
try this : href="./css/style.css" 30th Nov 2020, 11:32 AM · Med Amine Fh · + 1 · still not working. 30th Nov 2020, 11:36 AM · Jordi · + 1 · I see no h1 tag in the html file to style it , so you have to fix the html file first , add the body tag add h1 tag inside the body after that check if that works ·
🌐
Tibco
docs.tibco.com › pub › wf-wf › 9.3.1 › doc › html › 910-crlang › ExternalCSS204.htm
Troubleshooting External Cascading Style Sheets
Solution: Click your browser Refresh button (Microsoft Internet Explorer) to reload the CSS file from the web server. This ensures that your web browser will use the most current version of the cascading style sheet to format the report. Symptom: The report is not using any of the cascading ...