HTML File Paths
An HTML file path is used to describe the location of a file in a website folder.
File paths are like an address of file for a web browser. We can link any
external resource to add in our HTML file with the help of file paths such as
images, file, CSS file, JS file, video, etc.
The src or href attribute requires an attribute to link any external source to
HTML file.
Following are the different types to specify file paths:
1. <img src="[Link]"> It specifies that [Link] is located in the same
folder as the current page.
2. <img src="images/[Link]"> It specifies that [Link] is located in
the images folder in the current folder.
3. <img src="/images/[Link]"> It specifies that [Link] is located in
the images folder at the root of the current web.
4. <img src="../[Link]"> It specifies that [Link] is located in the
folder one level up from the current folder.