Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 318
Simon Suh Avatar asked Sep 29 '11 00:09

Simon Suh


People also ask

What is dot slash HTML?

The dot-slash, ./ , is a relative path to something in the current directory. The dot is the current directory and the slash is a path delimiter.

What does dot dot mean in file path?

(dot dot) This refers to the parent directory of your working directory, immediately above your working directory in the file system structure. If one of these is used as the first element in a relative path name, it refers to your working directory.

What do two dots and a slash mean in HTML?

It means to go up one level, to the directory that contains the current directory. – Barmar. Oct 17, 2015 at 0:26. If your current directory is /home/yourname/somefolder , .. means /home/yourname.

What is file path in HTML?

A file path describes the location of a file in a web site's folder structure. File paths are used when linking to external files, like: Web pages.


Video Answer


1 Answers

/ means the root of the current drive;

./ means the current directory;

../ means the parent of the current directory.

like image 152
Sourabh Avatar answered Oct 01 '22 09:10

Sourabh