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:
- Web pages.
- Images
- Style sheets
- JS(JavaScript)
Ther is two types of HTML File Paths.
- Absolut File Paths
- Relative File Paths
When we are going to use Absolut file then we need to give full URL
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
Picture Downlode from PixabayThis 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
Picture Downlode from PixabayThis picture will display from This Pixabay Server.