HTML File Paths
A file path describes the location of a file in a web site's folder 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:
- Web pages.
- Images
- Style sheets
- JS(JavaScript)
There are two types of HTML File Paths.
- Absolute File Paths
When we are going to use absolute file then we need to give full URL
- Relative File Paths
A relative file path points to a file relative to the current page.
The below is a quick example:
Relative file path Example
<img src="./flower.jpg" alt="Relative Image Preview" height="500px">
Preview

Picture Downlode from Pixabay
"This picture will be displayed from the html.org.in website server."
Absolute file path Example
<img src="https://picsum.photos/200" alt="Absolute Image Preview" height="500px">
Preview:
This picture was displayed directly from the https://picsum.photos/
server. It will change with a refresh...