I want to know about how the relative path works like ../ or ./


When you ask a question, don’t forget to include a link to the exercise or project you’re dealing with!

If you want to have the best chances of getting a useful answer quickly, make sure you follow our guidelines about how to ask a good question. That way you’ll be helping everyone – helping people to answer your question and helping others who are stuck to find the question and answer! :slight_smile:

While I am taking a course for CSS,

I found path (…/fonts/Glegoo-Regular.ttf)

Well As I don’t know what …/ stands for, so I just used the hint without knowing what it actually means.

Also I saw some lines like this ‘./’ .

I know it’s related with file path, yet Still getting confused. I even try to google it, but not shown on search bar.


is the same directory;

is the directory that contains this directory (the parent)

Deduce from this what subsequent levels will be.


Thanks! So the dot acts as jump to previous directory.


When its a double dot, yes. A single dot is the current directory.