How do I connect my style.css

how to link my style.css

I think we’re having the same issue, but you haven’t described it in enough detail. I have a simple HTML page and main.js and style.css files in the same folder as index.html. In the HTML file, I have references to these files. Locally on my PC, everything works, but after launching it in idx, in the preview, I see that index.html doesn’t see the linked CSS and JS files.

My style.css does not link to my index.html as a stylesheet link either.

I need to know what framework you are using. Next.js? Anglar? Flask? The file structure is important.

basic html--

my-angular-app/
├── src/
│ ├── app/
│ │ ├── app.module.ts
│ │ ├── app.component.ts
│ │ ├── app.component.html
│ │ ├── app.component.css (or .scss)
│ │ └── … (other components, services, etc.)
│ ├── assets/
│ │ └── … (images, fonts, etc.)
│ ├── index.html
│ ├── main.ts
│ ├── styles.css (or .scss)
│ └── tsconfig.app.json
├── angular.json
├── package.json
├── tsconfig.json
└── … (other configuration files)

my-nextjs-app/
├── pages/
│ ├── index.js (or .tsx)
│ ├── _app.js (or .tsx)
│ ├── _document.js (or .tsx)
│ └── … (other page files)
├── public/
│ └── … (static assets)
├── styles/
│ ├── globals.css
│ └── … (other styles)
├── components/
│ └── … (reusable react components)
├── package.json
├── next.config.js
├── tsconfig.json (optional)
└── … (other configuration files)

If it is the base html template the relative path is important