File path in HTML
The article explains how to refer to the file path in HTML.
The article explains how to refer to the file path in HTML.
File path in HTML
The file path is the file's address in the directory structure of the website, which can be used when linking to external files such as:
- Webpage
- Image
- Style Sheet
- JavaScript
Absolute file path
Absolute path is the full URL of the Internet file.
Relative file path
The relative path points to a file related to the current page. In this example, the path points to the file in the last image folder of the current web page.
In this example, the path points to the file in the image folder placed in a folder on a level compared to the current directory.
Usually, use relative links (if possible) because the site will not be tied to a certain URL. All links are available on your computer (localhost) and on the public domain as well as in the future.
Previous article: JavaScript in HTML
The following article: Head element in HTML
You should read it
Maybe you are interested
An ancient asteroid once collided with and 'flipped' Jupiter's moon Ganymede Mysterious black objects appear in NASA sun photos 10 strange and interesting facts about the universe you may not have heard of Scientists are increasingly interested in warp engines, which 'space distortion' technology allows us to travel at the s The interesting scientific knowledge that we missed while at school What bad thing will happen if the Sun suddenly disappears?