HTML File Path

By | January 15, 2020

If a deaf resource is to be added to the current page, such as image file JS, to add a file or other link, the path of their file has to be called which is called the file path. Like if we have to add JS file, then make a folder of it and put that file in that folder and its path where we have to set it is set to. The HTML element for the file path has a Visible attribute such that the image contains src=””, the anchor tag has href=””, giving the path of the file.

<img src=”img.jpg”> This indicates that the image is kept in the current folder.

<img src=”image/img.jpg”> This indicates that the image is placed in the current folder in the image folder.

File paths are used to link external files on web pages.


  • Images
  • javaScript
  • Web Pages
  • Style sheets

There are mainly two types of file paths.

1- Absolute File Path

2-Relative File Path

Absolute File Path:-

Absolute file path specifies full URL address.

<h1>Absolute File Path</h1>
<img src="" alt="Image">

Relative File Path:-

This file path indicates the image placed in the current file in the folder named image as.

<h1>Relative File Path</h1>
<img src="images/img.jpg" alt="Image">
Spread the love

Leave a Reply

Your email address will not be published. Required fields are marked *