HTML FILE PATH

Anitha



HTML File Path

The location of a file inside a web folder structure is specified by its file path. It functions similarly to a file's address in facilitating web browser file access. To link to external resources like pictures, videos, etc., use file paths.

Syntax:

<img src = "... "  alt =" ">

Example For File Path 

<img src ="image.png">
<img src ="downloads/image.png">
<img src = "/downloads/image.png">
<img src= "../image.png">

What Are The File Paths In HTML?

A file path specifies the location of a file within the folder structure of a website. When linking to external files, file paths such as:
  • Web pages
  • Images
  • Style sheets
  • JavaScript

Types Of File Path In HTML

File paths are of two types:
  • Absolute File Path
  • Relative File Path

Absolute File Path:

The complete URL (address) of the file path to access an internet file is known as the absolute file path.

Relative File Path:

The path of the file in relative to the current web page's location is described by the relative file path.





More topic in HTML

Our website uses cookies to enhance your experience. Learn More
Accept !

GocourseAI

close
send