HTML File Paths 📌


A file path describes the location of a file in a web site's foldwe structure.


HTML File paths

A file path describs the location of a file in a web site's folder structure.

File paths are used when linking to external file, like:

  1. Web pages.
  2. Images
  3. Style sheets
  4. JS(JavaScript)

Ther is two types of HTML File Paths.

  1. Absolut File Paths
  2. When we are going to use Absolut file then we need to give full URL

  3. Relative File Paths
  4. A relative file path points to a file relative to the current page.

Take a look on this example 👇🏿




Relative file path Example

                
<img src="./flower.jpg" alt="Relative Image Preview" height="500px">
            

Preview

Relative Image Preview Picture Downlode from Pixabay

This picture will display from This html.org.in website Server.




Absolut file path Example

                
<img src="https://pixabay.com/images/id-7997033/" alt="Absolut Image Preview" height="500px">
            

Preview

Absolut Image Preview Picture Downlode from Pixabay

This picture will display from This Pixabay Server.