In HTML, File Path Describe or Specifies to the Location of a file(Example.Doc, Image etc.) in a webside folder.
Generally File Path used to Link the following file like:
File Path are two types:
Absolute file path is the full URL for the file.
Example:localhost/Image.jpg(In local)
Example:www.studentstutorial.com/Image.jpg(In Online Server)
<!DOCTYPE html>
<html>
<head>
<title>Absolute file path</title>
</head>
<body>
<img src="https://studentstutorial/images/my_image.jpg"
alt="My Image" style="width:400px">
</body>
</html>
It specifies the path of the file relative to the location of the current web page file. Relative Path is recommended because there is no need to change the URL even is the website domain name is change.
<!DOCTYPE html>
<html>
<head>
<title>Relative file path</title>
</head>
<body>
<h2>File present in the same folder</h2>
<img src="images/my_image.jpg" alt="My Image" style="width:400px">
</body>
</html>