What does "./" (dot slash) refer to in terms of an HTML file path location?

Simon Suh picture Simon Suh · Sep 29, 2011 · Viewed 147.4k times · Source

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?

Answer

Sourabh picture Sourabh · Dec 3, 2014

/ means the root of the current drive;

./ means the current directory;

../ means the parent of the current directory.