The question is: Where is your html file? Obviously not in the root folder, but probably in another sub folder. Try this

<link rel="stylesheet" href="../css/style.css" />

This navigates one level up and then into the css folder.

Answer from Johannes on Stack Overflow
🌐
Reddit
reddit.com › r/css › css is not working in vs code- help ( i am linking it correctly)
r/css on Reddit: CSS is not working in Vs code- HELP ( I am Linking it correctly)
October 26, 2020 -

I tried using bootstrap in my code for the first time and then after that my previous css work would not display. Now even though I’ve cut out the bootstrap and even tried making another simple bellow world page just to check , simple css like color won’t work. I’ve tried internal and inline Internal seems to be working for a complicated homepage but doesn’t for a simple hello world

EDIT- here’s my code And
This is it without bootstrap

🌐
GitHub
github.com › microsoft › vscode › issues › 155409
CSS not linking with HTML · Issue #155409 · microsoft/vscode
June 11, 2022 - Issue Type: Performance Issue Can you please tell me why my external style.css file is not linking to my HTML file? I have a folder called css and a file within my css folder called style.css. In the 'head' section I have a link which st...
Author   Glenda9031
🌐
Sololearn
sololearn.com › en › Discuss › 2965224 › help-i-need-to-link-my-css-and-html-documents-in-vs-code
Help I need to link my css and html documents in vs code | Sololearn: Learn to code for FREE!
To link CSS to a HTML (example) : <head> ... <link rel ="stylesheet" href = "user1/desktop/folder1/folder2/filename.css"> ... </head> I don't know if it will help, but the only way I found to link sheets, images, websites etc using vsc, is by checking the following things... So, make sure: • to copy the whole path, it's annoyng but I've not found another good way to make it work *note: the path in my example is actually a random example, since an actual complete path is way longer • the slash / is there before the css file name, because sometimes vsc pastes the path without the slash and somehow it doesn't work; • to write also .css at the end of the file name.
🌐
Visual Studio Code
code.visualstudio.com › docs › languages › css
CSS, SCSS and Less
November 3, 2021 - VS Code will then offer language support such as completion & hover information for the provided properties, at-directives, pseudo-classes and pseudo-elements. You can read more about using custom data in the vscode-custom-data repository. The CSS Languages Features extension also provides a formatter. The formatter works with CSS, LESS and SCSS.
Find elsewhere
🌐
Codecademy Forums
discuss.codecademy.com › web development › front-end
# style.css isn’t showing up like this in Open Editors/ VSCodes - Front-End - Codecademy Forums
May 12, 2023 - I am trying to open a new file. I have already created my html file, now css. The problem is the hashtag isn’t popping up to represent a css file. It only shows the document icon. I’ve googled but can’t seem to find anyw…
🌐
GitHub
github.com › Microsoft › vscode › issues › 65737
VS Code able & not able to format CSS · Issue #65737 · microsoft/vscode
September 22, 2018 - VS Code able & not able to format CSS VSCode Version: 1.30.1 OS Version: NA Does this issue occur when all extensions are disabled?: YES IT DOES STEPS TO REPRODUCE: 1.Format an HTML document with css inside style tags… WORKS NO PROBLEM. ...
Author   919Studios
🌐
Stack Overflow
stackoverflow.com › questions › 74076471 › how-do-i-use-external-css-in-an-html-document-in-vsc
How do I use external CSS in an HTML document in VSC? - Stack Overflow
Second the path of the css must be correct if both the html and css path are on same directory then code this ... I think it works if not can you post the screenshot of the directory you are working and the css and html file
🌐
GitHub
github.com › ritwickdey › vscode-live-server › issues › 142
CSS file doesn't load · Issue #142 · ritwickdey/vscode-live-server
June 2, 2018 - Hi! I am running live-server to quickly see changes in my web page trials. Changes in html are reloaded well. However, it appears that the CSS file does not load. If I use the "file://" on the browser, it works just fine.
Author   Icomanman
🌐
freeCodeCamp
forum.freecodecamp.org › html-css
VS Code HTML and CSS preview not linking - HTML-CSS - The freeCodeCamp Forum
May 12, 2023 - Hi all, I have been staring at this for two days now, but struggling a lot for CSS code file to show up on HTML preview when using VS Code. (I really like VS Code and don’t really want to switch to Brackets or other co…
🌐
Codecademy Forums
discuss.codecademy.com › get help › css
Can't open index.css file on Visual Studio Code - CSS - Codecademy Forums
January 6, 2020 - I’m studying Web Development. I’m currently still stuck on Section 2, “Styling a Website” >“Create Your First HTML/Project”, step 2.2. Step 2.2 instructs us to open the index.css file on our favorite file editor. We were instructed to stick with Visual Studio Code.
🌐
GitHub
github.com › ritwickdey › vscode-live-server › issues › 2404
VS Code> CSS file not showing in live server · Issue #2404 · ritwickdey/vscode-live-server
Furthermore, the css file of another folder in VS code is working in live server. As I made changes in css file to check it. Also Css link is added in HTML, which ccs link spelled the same as css file .
Author   ghost
🌐
GitHub
github.com › be5invis › vscode-custom-css › issues › 148
Can't load CSS in vscode 1.58 · Issue #148 · be5invis/vscode-custom-css
May 31, 2021 - Yesterday I updated my vscode and repeated the "after-update" routine: 1- Disable custom CSS; 2- Restart vscode; 3- Enable custom CSS; 4- Restart vscode; After that, the "Your vscode instalation seems to be broken" message didn't appear ...
Author   arucuenca
🌐
Sololearn
sololearn.com › en › Discuss › 3099413 › how-to-run-css-and-html-on-visual-studio-code-software
How to run css and HTML on visual studio code software | Sololearn: Learn to code for FREE!
It sounds like the css might not be correctly linked. Could show us the code with which you linked the css? ... What exactly "didn't work"? What error do you get? https://www.wikihow.com/Run-a-HTML-File-in-Visual-Studio-Code
🌐
Stack Overflow
stackoverflow.com › questions › 69740548 › visual-studio-code-extension-html-preview-external-css-its-not-working
Visual Studio Code Extension: HTML Preview; External CSS it's not working - Stack Overflow
1 html not linking to css file in Visual Studio Code · 75 EditorConfig extension for VS Code does nothing · 0 VS Code CSS Configuration Preview Not Working With Markdown Workspace Settings · 11 VSCode Extension webview external html and css · 0 Visual studio code intellisense doesn't see html classes ·