I know ../ means go up a path, but what does ./ mean exactly?
../
./
I was recently going through a tutorial and it seems to be referring to just a file in the same location, so is it necessary at all? Can I just not use it if that's all it's doing?
./ is the the folder that the working file is in:
So in /index.htm ./ is the root directory but in /css/style.css ./ is the css folder.
/index.htm
/css/style.css
This is important to remember because if you move CSS from /index.htm to /css/style.css the path will change.
548k questions
547k answers
4 comments
86.3k users