Avatar of AXISHK
AXISHK
 asked on

Path Reference for CSS file

What does "~" mean in CSS path reference :

<link rel="stylesheet" href="~/css/first.css" />
CSS

Avatar of undefined
Last Comment
lenamtl

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Zakaria Acharki

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
lenamtl

We often see this with @import

prefix ~ at the start of the path is usually for Webpack loader to resolve the import "like a module" from a node module path for example with
normalize.css

As a link alone we usually use dot
<link rel="stylesheet" href="./css/first.css" />

Open in new window

Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy