What are File Paths in HTML?
A file path describes the location of a file in a folder structure of web site.
File paths are used when linking to external files e.g Web pages ,Images, Style sheets ,JavaScripts.
Two main types of path files are:
Absolute File Paths
Relative File Paths
Absolute File Paths:
An absolute file path is the full URL to an internet file.
E.g:
<img src="https://newsandstory.com/images/pic.jpg" alt="Nature"> |
Relative File Paths:
A relative file path points to a file relative to the current page.
<img src ="/images/pic.jpg" alt="Nature"> |
HTML
Ayesha
Tech writer at newsandstory
Total 913 views